From 6aef3729aeee931a2c50345877eaf4cd7ed7fb26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=9B=BD=E8=BE=89?= Date: Wed, 9 Jul 2025 06:47:20 +0000 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=20=E9=BB=84=E5=9B=BD=E8=BE=89=20?= =?UTF-8?q??= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄国辉 --- src/core/testcase/testcase_manager.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/core/testcase/testcase_manager.py b/src/core/testcase/testcase_manager.py index 986b182..bb0a7b1 100644 --- a/src/core/testcase/testcase_manager.py +++ b/src/core/testcase/testcase_manager.py @@ -60,8 +60,7 @@ class TestCaseManager(object): short_name, _ = os.path.splitext(os.path.basename(suite_file)) testsuit_list = testsuit.split(',') for test in testsuit_list: - if short_name.startswith(test) or \ - testsuit.startswith(short_name): + if short_name == test: return True return False @@ -70,9 +69,7 @@ class TestCaseManager(object): suitfile_subpath = suitfile_subpath.strip(os.sep) if len(partlist) == 0: if testmodule != "": - temp_list = suitfile_subpath.split(os.sep) - if len(temp_list) > 2 and testmodule == temp_list[1]: - is_valid_status = True + is_valid_status = False else: is_valid_status = True else: -- Gitee