Post Prime95 results for aborted tests
This commit is contained in:
parent
904b41dbae
commit
08768424f0
1 changed files with 10 additions and 9 deletions
|
|
@ -960,6 +960,9 @@ def run_mprime(ticket_number):
|
|||
except KeyboardInterrupt:
|
||||
# Catch CTRL+C
|
||||
aborted = True
|
||||
TESTS['Prime95']['Status'] = 'Aborted'
|
||||
print_warning('\nAborted.')
|
||||
update_progress()
|
||||
|
||||
# Save "final" temps
|
||||
run_program(
|
||||
|
|
@ -1007,15 +1010,7 @@ def run_mprime(ticket_number):
|
|||
TESTS['Prime95']['CS'] = bool(r)
|
||||
|
||||
# Update status
|
||||
if aborted:
|
||||
TESTS['Prime95']['Status'] = 'Aborted'
|
||||
print_warning('\nAborted.')
|
||||
update_progress()
|
||||
if TESTS['NVMe/SMART']['Enabled'] or TESTS['badblocks']['Enabled']:
|
||||
if not ask('Proceed to next test?'):
|
||||
run_program('tmux kill-pane -a'.split())
|
||||
raise GenericError
|
||||
else:
|
||||
if not aborted:
|
||||
if TESTS['Prime95']['NS']:
|
||||
TESTS['Prime95']['Status'] = 'NS'
|
||||
elif TESTS['Prime95']['CS']:
|
||||
|
|
@ -1056,6 +1051,12 @@ def run_mprime(ticket_number):
|
|||
ticket_id=ticket_number,
|
||||
response='\n'.join(report))
|
||||
|
||||
if aborted:
|
||||
if TESTS['NVMe/SMART']['Enabled'] or TESTS['badblocks']['Enabled']:
|
||||
if not ask('Proceed to next test?'):
|
||||
run_program('tmux kill-pane -a'.split())
|
||||
raise GenericError
|
||||
|
||||
# Done
|
||||
run_program('tmux kill-pane -a'.split())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue