修改测试方案

This commit is contained in:
2025-09-07 07:37:34 +08:00
parent 3678b24318
commit 1958f196f5
12 changed files with 75 additions and 50 deletions

View File

@@ -40,6 +40,7 @@ def parse_value(value):
return parsed_value, mask
def compare_files(source_file, target_file):
warning_need_recheck = 0
try:
with open(source_file, 'r') as src, open(target_file, 'r') as tgt:
source_lines = src.readlines()
@@ -62,6 +63,9 @@ def compare_files(source_file, target_file):
continue
else:
if src_values[0].strip().lower() == 'x':
if warning_need_recheck == 0:
print(f'[\033[93mWARNING\033[0m] Ignored lines detected. This test case requires manual comparison. \n\t[\033[93mTARGET\033[0m] {target_file}\t[\033[93mSRC\033[0m] {source_file}')
warning_need_recheck = 1
continue
line_match = True