Fix SMART short-test results section
* OVERRIDE status reduced to yellow/warning * Allows it to be elevated to NS or TimedOut * Only disable other disk tests on test.failed * OVERRIDE doesn't work if based on test.passed for this test
This commit is contained in:
parent
6e37736146
commit
96d34ceb50
1 changed files with 3 additions and 3 deletions
|
|
@ -66,8 +66,8 @@ KEY_SMART = 'ata_smart_attributes'
|
||||||
QUICK_LABEL = '{YELLOW}(Quick){CLEAR}'.format(**COLORS)
|
QUICK_LABEL = '{YELLOW}(Quick){CLEAR}'.format(**COLORS)
|
||||||
SIDE_PANE_WIDTH = 20
|
SIDE_PANE_WIDTH = 20
|
||||||
STATUSES = {
|
STATUSES = {
|
||||||
'RED': ['Denied', 'ERROR', 'NS', 'OVERRIDE', 'TimedOut'],
|
'RED': ['Denied', 'ERROR', 'NS', 'TimedOut'],
|
||||||
'YELLOW': ['Aborted', 'N/A', 'Unknown', 'Working'],
|
'YELLOW': ['Aborted', 'N/A', 'OVERRIDE', 'Unknown', 'Working'],
|
||||||
'GREEN': ['CS'],
|
'GREEN': ['CS'],
|
||||||
}
|
}
|
||||||
TESTS_CPU = ['Prime95']
|
TESTS_CPU = ['Prime95']
|
||||||
|
|
@ -1513,7 +1513,7 @@ def run_nvme_smart_tests(state, test):
|
||||||
test.update_status('TimedOut')
|
test.update_status('TimedOut')
|
||||||
|
|
||||||
# Disable other drive tests if necessary
|
# Disable other drive tests if necessary
|
||||||
if not test.passed:
|
if test.failed:
|
||||||
for t in ['badblocks', 'I/O Benchmark']:
|
for t in ['badblocks', 'I/O Benchmark']:
|
||||||
test.dev.disable_test(t, 'Denied')
|
test.dev.disable_test(t, 'Denied')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue