Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions python/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,8 @@ def module_exists(module):
for testname in testnames.split(','):
if " " in testname:
# "{module} {class.testcase_name}"
module, testcase = testname.split(" ")
if not module_exists(module):
print(f"Error: Can't find module '{module}'.")
sys.exit(-1)
testnames_to_test.append(f"{module} {testcase}")
# Just add the testname as is
testnames_to_test.append(testname)
else:
if module_exists(testname):
# "{module}"
Expand All @@ -255,8 +252,8 @@ def module_exists(module):
testnames_to_test.append(f"{module} {testcase}")
break
else:
print(f"Error: Invalid testname '{testname}'.")
sys.exit(-1)
# "Can't find the module, the users must know what they are doing"
testnames_to_test.append(testname)

return testnames_to_test

Expand Down