Moved disk safety checks to after the test
* This way failures during the last test should be caught
This commit is contained in:
parent
6071470b6a
commit
82341dbbb3
1 changed files with 4 additions and 4 deletions
|
|
@ -1249,10 +1249,6 @@ def run_diags(state, menu, quick_mode=False):
|
||||||
# Skip disabled tests
|
# Skip disabled tests
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Run safety checks
|
|
||||||
if name.startswith('Disk') and name != 'Disk Attributes':
|
|
||||||
state.disk_safety_checks()
|
|
||||||
|
|
||||||
# Run test(s)
|
# Run test(s)
|
||||||
function = details['Function']
|
function = details['Function']
|
||||||
args = [details['Objects']]
|
args = [details['Objects']]
|
||||||
|
|
@ -1267,6 +1263,10 @@ def run_diags(state, menu, quick_mode=False):
|
||||||
state.init_tmux()
|
state.init_tmux()
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# Run safety checks
|
||||||
|
if name.startswith('Disk'):
|
||||||
|
state.disk_safety_checks(wait_for_self_tests=name != 'Disk Attributes')
|
||||||
|
|
||||||
# Handle aborts
|
# Handle aborts
|
||||||
if aborted:
|
if aborted:
|
||||||
for details in state.tests.values():
|
for details in state.tests.values():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue