Skip to content

Commit 9390217

Browse files
author
MarcoFalke
committed
Merge #14795: test: allows test_runner command line to receive parameters for each test
5c40e7b test: allows test_runner command line to receive parameters for each test (marcoagner) Pull request description: Fixes #14791. Seems to address the asked behaviour in a simple way, but could address more if a more complex behaviour is found to be needed (e.g. call `rpc_bind --ipv4` without the ".py" and have it added). Tree-SHA512: d7e21dd0ada36dd97dac71196bb97702a92986b181beb3753e37e3294b899fb65129aff5f9a45fe92b06fbf7c74e605ccb87a422f874f7a85d30401f4c2228c8
2 parents d38a2c1 + 5c40e7b commit 9390217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def main():
274274
if tests:
275275
# Individual tests have been specified. Run specified tests that exist
276276
# in the ALL_SCRIPTS list. Accept the name with or without .py extension.
277-
tests = [re.sub("\.py$", "", test) + ".py" for test in tests]
277+
tests = [test + ".py" if ".py" not in test else test for test in tests]
278278
for test in tests:
279279
if test in ALL_SCRIPTS:
280280
test_list.append(test)

0 commit comments

Comments
 (0)