Added warning if no disks detected.
This commit is contained in:
parent
a9c5c1c274
commit
6340bceb11
1 changed files with 7 additions and 0 deletions
|
|
@ -1010,6 +1010,10 @@ def run_hw_tests(state):
|
||||||
f = v['Function']
|
f = v['Function']
|
||||||
for test_obj in v['Objects']:
|
for test_obj in v['Objects']:
|
||||||
f(state, test_obj)
|
f(state, test_obj)
|
||||||
|
if not v['Objects']:
|
||||||
|
# No devices available
|
||||||
|
v['Objects'].append(TestObj(dev=None, label=''))
|
||||||
|
v['Objects'][-1].update_status('N/A')
|
||||||
except GenericAbort:
|
except GenericAbort:
|
||||||
# Cleanup
|
# Cleanup
|
||||||
tmux_kill_pane(*state.panes.values())
|
tmux_kill_pane(*state.panes.values())
|
||||||
|
|
@ -1593,6 +1597,9 @@ def show_results(state):
|
||||||
for disk in state.disks:
|
for disk in state.disks:
|
||||||
show_report(disk.generate_disk_report(), log_report=True)
|
show_report(disk.generate_disk_report(), log_report=True)
|
||||||
print_standard(' ')
|
print_standard(' ')
|
||||||
|
if not state.disks:
|
||||||
|
print_warning('No devices')
|
||||||
|
print_standard(' ')
|
||||||
|
|
||||||
# Update progress
|
# Update progress
|
||||||
update_progress_pane(state)
|
update_progress_pane(state)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue