Skip to content
Snippets Groups Projects
Commit ae9fdbe4 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Make line-wise pycompare stop on first error if using quick mode

parent 20412939
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment