aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_runner.py
diff options
context:
space:
mode:
authormarcoagner <marco@agner.io>2018-11-23 17:02:24 +0000
committermarcoagner <marco@agner.io>2018-11-23 17:02:24 +0000
commit5c40e7b91a642d93d49f2b81ff9550a9138f18ac (patch)
tree90aadcc12cdcca357538016f6598e05195d9bce3 /test/functional/test_runner.py
parent2607c38fc5170409dd13f3061ba5e5fa2de6438d (diff)
downloadbitcoin-5c40e7b91a642d93d49f2b81ff9550a9138f18ac.tar.xz
test: allows test_runner command line to receive parameters for each test
Diffstat (limited to 'test/functional/test_runner.py')
-rwxr-xr-xtest/functional/test_runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py
index da55a3a156..0c4cdac528 100755
--- a/test/functional/test_runner.py
+++ b/test/functional/test_runner.py
@@ -272,7 +272,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)