Skip disk safety checks if only testing the CPU
This commit is contained in:
parent
d8123a71ec
commit
e0a2993c36
1 changed files with 8 additions and 3 deletions
|
|
@ -854,9 +854,13 @@ def run_hw_tests(state):
|
||||||
v['Objects'].append(test_obj)
|
v['Objects'].append(test_obj)
|
||||||
print_standard('')
|
print_standard('')
|
||||||
|
|
||||||
# Run safety checks
|
# Run disk safety checks (if necessary)
|
||||||
for disk in state.disks:
|
_disk_tests_enabled = False
|
||||||
disk.safety_check(silent=state.quick_mode)
|
for k in TESTS_DISK:
|
||||||
|
_disk_tests_enabled |= state.tests[k]['Enabled']
|
||||||
|
if _disk_tests_enabled:
|
||||||
|
for disk in state.disks:
|
||||||
|
disk.safety_check(silent=state.quick_mode)
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
## Because state.tests is an OrderedDict and the disks were added
|
## Because state.tests is an OrderedDict and the disks were added
|
||||||
|
|
@ -1266,6 +1270,7 @@ def show_results(state):
|
||||||
print_standard(' ')
|
print_standard(' ')
|
||||||
|
|
||||||
# Disk tests
|
# Disk tests
|
||||||
|
_enabled = False
|
||||||
for k in TESTS_DISK:
|
for k in TESTS_DISK:
|
||||||
_enabled |= state.tests[k]['Enabled']
|
_enabled |= state.tests[k]['Enabled']
|
||||||
if _enabled:
|
if _enabled:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue