diff --git a/python/run-tests.py b/python/run-tests.py index 83b7d86c11da..5de4b6fb00d3 100755 --- a/python/run-tests.py +++ b/python/run-tests.py @@ -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}" @@ -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