From 7c81a9580ebb62ef90434ce12ca4e82f2e075263 Mon Sep 17 00:00:00 2001
From: Giovanni La Mura <giovanni.lamura@inaf.it>
Date: Tue, 19 Mar 2024 17:22:11 +0100
Subject: [PATCH] Skip log file if the file line numbers differ

---
 src/scripts/pycompare.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/scripts/pycompare.py b/src/scripts/pycompare.py
index 2add23e6..0ebeff4e 100755
--- a/src/scripts/pycompare.py
+++ b/src/scripts/pycompare.py
@@ -141,6 +141,9 @@ def compare_files(config):
         print("ERROR: {0:s} and {1:s} have different numbers of lines!".format(
             config['fortran_file_name'], config['c_file_name']
         ))
+        if (config['log_html']):
+            print("Different file sizes. No log produced.")
+            config['log_html'] = False
     return mismatch_count
 
 ## \brief Perform the comparison of two file lines.
-- 
GitLab