From 185939929facc0866500bb5f8c4521302507a9bf Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Tue, 2 Dec 2025 15:10:22 -0800 Subject: [PATCH] Relax the restriction of run-tests --- python/run-tests.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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