Commit 741785da authored by Jan Kiene's avatar Jan Kiene
Browse files

pass all split files to check_for_changes.py

parent ef4d8850
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -11,10 +11,9 @@ COLS = [
]


def main(args):
    linewise_logfiles = [args.wmops_logfile, args.ram_logfile, args.rom_logfile]
def main(logfiles):
    changes_found_linewise = any(
        [check_linewise_logfile(f, c) for f, c in zip(linewise_logfiles, COLS)]
        [check_linewise_logfile(f, c) for f, c in zip(logfiles, COLS)]
    )

    if changes_found_linewise:
@@ -59,9 +58,7 @@ def check_linewise_logfile(filepath, cols):

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument("wmops_logfile")
    parser.add_argument("ram_logfile")
    parser.add_argument("rom_logfile")
    parser.add_argument("logfiles", nargs="+")
    args = parser.parse_args()

    sys.exit(main(args))
    sys.exit(main(args.logfiles))
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ else
  python3 ci/complexity_measurements/genWebpageData.py --wmops_per_op_log ${wmopsFilenameFlc}_WMOPS.csv --rom_log ${log_rom_all}
fi

python3 ${scriptDir}/check_for_changes.py ${destDir}/wmops/log_wmops_all.txt ${destDir}/wmops/log_ram_all.txt ${destDir}/wmops/log_rom_all.txt
python3 ${scriptDir}/check_for_changes.py "${destDir}/wmops/log_wmops_all*.txt" "${destDir}/wmops/log_ram_all*.txt" ${destDir}/wmops/log_rom_all.txt
if [ "$?" != "0" ]; then
  ret_val=1
fi