From 5c40e7b91a642d93d49f2b81ff9550a9138f18ac Mon Sep 17 00:00:00 2001 From: marcoagner Date: Fri, 23 Nov 2018 17:02:24 +0000 Subject: [PATCH] test: allows test_runner command line to receive parameters for each test --- test/functional/test_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)