diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-12-07 11:26:12 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-12-07 11:26:15 -0500 |
commit | 93902170445186984744cc1e1be2f8a69c9c99e6 (patch) | |
tree | f7d0a1b6e83aa232a6e60a5ba7763b275ca51c2b | |
parent | d38a2c14168d4c39530ff44cca2d7fec8668045c (diff) | |
parent | 5c40e7b91a642d93d49f2b81ff9550a9138f18ac (diff) | |
download | bitcoin-93902170445186984744cc1e1be2f8a69c9c99e6.tar.xz |
Merge #14795: test: allows test_runner command line to receive parameters for each test
5c40e7b91a 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
-rwxr-xr-x | test/functional/test_runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index c029abddc1..a68b544738 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -274,7 +274,7 @@ def main(): if tests: # Individual tests have been specified. Run specified tests that exist # in the ALL_SCRIPTS list. Accept the name with or without .py extension. - tests = [re.sub("\.py$", "", test) + ".py" for test in tests] + tests = [test + ".py" if ".py" not in test else test for test in tests] for test in tests: if test in ALL_SCRIPTS: test_list.append(test) |