test-my-pr: if there are crashes then dont compare results and timings

This commit is contained in:
Daniel Marjamäki 2022-09-05 20:17:38 +02:00
parent 4401eba3fa
commit 2e7babbc8d
1 changed files with 7 additions and 6 deletions

View File

@ -187,10 +187,11 @@ 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')
if not main_crashed and not your_crashed:
with open(timing_file, 'a') as myfile: with open(timing_file, 'a') as myfile:
myfile.write('{:{package_width}} {:{timing_width}} {:{timing_width}} {:{timing_width}}\n'.format( myfile.write('{:{package_width}} {:{timing_width}} {:{timing_width}} {:{timing_width}}\n'.format(
package, format_float(time_main), package, format_float(time_main),