enforce usage of the get_tests comptool interface as ComparisonTestFramework method

In practice all-and-only subclasses of ComparisonTestFramework implement get_tests.
This commit enforces this relation.
This commit is contained in:
zancas 2022-01-24 10:57:38 -07:00
parent d8c818bfa5
commit 4dce020678
No known key found for this signature in database
GPG Key ID: 6DB04B434E55B7BF
2 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,8 @@ using a script provided.
To use, create a class that implements get_tests(), and pass it in
as the test generator to TestManager. get_tests() should be a python
generator that returns TestInstance objects. See below for definition.
In practice get_tests is always implemented on a subclass of ComparisonTestFramework.
'''
# TestNode behaves as follows:

View File

@ -203,3 +203,6 @@ class ComparisonTestFramework(BitcoinTestFramework):
extra_args=[['-debug', '-whitelist=127.0.0.1']] * self.num_nodes,
binary=[self.options.testbinary] +
[self.options.refbinary]*(self.num_nodes-1))
def get_tests(self):
raise NotImplementedError