test: allows test_runner command line to receive parameters for each test

This commit is contained in:
marcoagner 2018-11-23 17:02:24 +00:00
parent 2607c38fc5
commit 5c40e7b91a
No known key found for this signature in database
GPG key ID: 0DC77FC61ED3ECC4

View file

@ -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)