From 0294a2d9d6d979b8d4016920c2c1b1616958a98e Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Wed, 14 Aug 2024 19:07:10 +0800 Subject: [PATCH] tetst: test for checking return value --- tests/ci/scan_file_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci/scan_file_path.py b/tests/ci/scan_file_path.py index 81862363a0..2d4e701012 100644 --- a/tests/ci/scan_file_path.py +++ b/tests/ci/scan_file_path.py @@ -134,7 +134,7 @@ def input_files(change_files): for line in file: file_name = line.strip() if any(dir_name in file_name for dir_name in scan_dir_list): - if (file_name.endswith(".c") or line.endswith(".cpp")) and all(dir_name not in file_name for dir_name in scan_skip_file_list): + if (file_name.endswith(".c") or file_name.endswith(".cpp")) and all(dir_name not in file_name for dir_name in scan_skip_file_list): if "enterprise" in file_name: file_name = os.path.join(TD_project_path, file_name) else: