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

Fix pycompare exit code if C++ produces empty file

parent 3ee755ae
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ def compare_files(config):
print("ERROR: C++ file is shorter than FORTRAN file.")
fortran_file.close()
c_file.close()
mismatch_count['errors'] = line_count
mismatch_count['errors'] = line_count if line_count > 0 else 1
return mismatch_count
f_lines[0] = fortran_file.readline()
c_lines[0] = c_file.readline()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment