From ae9fdbe4370d67ed773b6f1771c42a3545acd00d Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Fri, 31 May 2024 11:42:21 +0200 Subject: [PATCH] Make line-wise pycompare stop on first error if using quick mode --- src/scripts/pycompare.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/pycompare.py b/src/scripts/pycompare.py index 03cc1ac2..252000b3 100755 --- a/src/scripts/pycompare.py +++ b/src/scripts/pycompare.py @@ -180,7 +180,8 @@ def compare_files(config): mismatch_count['warnings'] += line_result[1] mismatch_count['noisy'] += line_result[2] if (mismatch_count['errors'] > 0 and not config['check_all']): - print("INFO: mismatch found at line %d"%(li + 1)) + print("INFO: mismatch found at line %d"%(num_read_lines)) + line_loop = False break else: mismatch_count['errors'] = len(c_lines) -- GitLab