Always save HW-Diags debug data
This commit is contained in:
parent
c75a67d34b
commit
58d8722ae2
1 changed files with 6 additions and 14 deletions
|
|
@ -1313,7 +1313,6 @@ def run_hw_tests(state):
|
|||
elif all_disk_tests_enabled and all_disks_passed:
|
||||
update_checkboxes = True
|
||||
|
||||
|
||||
# Ask to update checkboxes
|
||||
if update_checkboxes and ask('Update checkboxes using above results?'):
|
||||
# CPU checkboxes
|
||||
|
|
@ -1332,19 +1331,12 @@ def run_hw_tests(state):
|
|||
elif all_disk_tests_enabled and all_disks_passed:
|
||||
state.ost.set_disk_passed(state.ticket_id)
|
||||
|
||||
# Upload for review
|
||||
if (ENABLED_UPLOAD_DATA
|
||||
and DEBUG_MODE
|
||||
and ask('Upload results for review?')):
|
||||
try_and_print(
|
||||
message='Saving debug reports...',
|
||||
function=save_debug_reports,
|
||||
state=state, global_vars=global_vars)
|
||||
try_and_print(
|
||||
message='Uploading Data...',
|
||||
function=upload_logdir,
|
||||
global_vars=global_vars,
|
||||
reason='Review')
|
||||
# Export debug data
|
||||
try:
|
||||
save_debug_reports(state=state, global_vars=global_vars)
|
||||
except Exception:
|
||||
# WHY?
|
||||
pass
|
||||
|
||||
# Done
|
||||
sleep(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue