diff options
| author | marcoagner <[email protected]> | 2018-11-23 17:02:24 +0000 |
|---|---|---|
| committer | marcoagner <[email protected]> | 2018-11-23 17:02:24 +0000 |
| commit | 5c40e7b91a642d93d49f2b81ff9550a9138f18ac (patch) | |
| tree | 90aadcc12cdcca357538016f6598e05195d9bce3 /test/functional/test_runner.py | |
| parent | Merge #14764: travis: Run thread sanitizer on unit tests (diff) | |
| download | discoin-5c40e7b91a642d93d49f2b81ff9550a9138f18ac.tar.xz discoin-5c40e7b91a642d93d49f2b81ff9550a9138f18ac.zip | |
test: allows test_runner command line to receive parameters for each test
Diffstat (limited to 'test/functional/test_runner.py')
| -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 da55a3a15..0c4cdac52 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) |