From 3678b24318b1a166481e958747cec8543f9e4c1a Mon Sep 17 00:00:00 2001 From: bacon Date: Sun, 7 Sep 2025 00:52:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E8=BE=83=E6=96=87=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=95=E8=A1=8Cx=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E6=AF=94=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tb/shinTest/check_testcase.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tb/shinTest/check_testcase.py b/tb/shinTest/check_testcase.py index e6fde60..cb7fb3f 100755 --- a/tb/shinTest/check_testcase.py +++ b/tb/shinTest/check_testcase.py @@ -56,9 +56,13 @@ def compare_files(source_file, target_file): tgt_values = tgt_line.strip().split() if len(src_values) != len(tgt_values): - print(f"Error: Line {i+1}: The number of values in {source_file} and {target_file} do not match.") - all_match = False - continue + if len(src_values) != 1: + print(f"Error: Line {i+1}: The number of values in {source_file} and {target_file} do not match.") + all_match = False + continue + else: + if src_values[0].strip().lower() == 'x': + continue line_match = True