Skip to content

Commit 5155602

Browse files
committed
Move argparse() to init()
This ensures TestFramework default parameters are set before setup is called. A child class will therefore have access to defaults when overriding setup.
1 parent 2ab0146 commit 5155602

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,13 @@ def __init__(self):
9999
self.supports_cli = False
100100
self.bind_to_localhost_only = True
101101
self.set_test_params()
102+
self.parse_args()
102103

103104
def main(self):
104105
"""Main function. This should not be overridden by the subclass test scripts."""
105106

106107
assert hasattr(self, "num_nodes"), "Test must set self.num_nodes in set_test_params()"
107108

108-
self.parse_args()
109-
110109
try:
111110
self.setup()
112111
self.run_test()

0 commit comments

Comments
 (0)