Loading ci/complexity_measurements/check_for_changes.py +4 −7 Original line number Diff line number Diff line Loading @@ -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: Loading Loading @@ -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)) ci/complexity_measurements/getWmops.sh +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
ci/complexity_measurements/check_for_changes.py +4 −7 Original line number Diff line number Diff line Loading @@ -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: Loading Loading @@ -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))
ci/complexity_measurements/getWmops.sh +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading