修改测试方案
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user