test-my-pr: if there are crashes then dont compare results and timings
This commit is contained in:
parent
4401eba3fa
commit
2e7babbc8d
|
@ -187,15 +187,16 @@ if __name__ == "__main__":
|
||||||
with open(result_file, 'a') as myfile:
|
with open(result_file, 'a') as myfile:
|
||||||
myfile.write(package + '\n')
|
myfile.write(package + '\n')
|
||||||
diff = lib.diff_results('main', results_to_diff[0], 'your', results_to_diff[1])
|
diff = lib.diff_results('main', results_to_diff[0], 'your', results_to_diff[1])
|
||||||
if diff != '':
|
if not main_crashed and not your_crashed and diff != '':
|
||||||
myfile.write(f'libraries:{libraries}\n')
|
myfile.write(f'libraries:{libraries}\n')
|
||||||
myfile.write('diff:\n' + diff + '\n')
|
myfile.write('diff:\n' + diff + '\n')
|
||||||
|
|
||||||
with open(timing_file, 'a') as myfile:
|
if not main_crashed and not your_crashed:
|
||||||
myfile.write('{:{package_width}} {:{timing_width}} {:{timing_width}} {:{timing_width}}\n'.format(
|
with open(timing_file, 'a') as myfile:
|
||||||
package, format_float(time_main),
|
myfile.write('{:{package_width}} {:{timing_width}} {:{timing_width}} {:{timing_width}}\n'.format(
|
||||||
format_float(time_your), format_float(time_your, time_main),
|
package, format_float(time_main),
|
||||||
package_width=package_width, timing_width=timing_width))
|
format_float(time_your), format_float(time_your, time_main),
|
||||||
|
package_width=package_width, timing_width=timing_width))
|
||||||
|
|
||||||
packages_processed += 1
|
packages_processed += 1
|
||||||
print(str(packages_processed) + ' of ' + str(args.p) + ' packages processed\n')
|
print(str(packages_processed) + ' of ' + str(args.p) + ' packages processed\n')
|
||||||
|
|
Loading…
Reference in New Issue