Fail test on SMART self-test timeout

This commit is contained in:
2Shirt 2019-03-13 20:22:28 -06:00
parent 648787913e
commit 34ef0bfae6
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1467,6 +1467,7 @@ def run_nvme_smart_tests(state, test, update_mode=False):
test.update_status('Aborted')
raise GenericAbort('Aborted')
elif dev.self_test_timed_out:
test.failed = True
test.update_status('TimedOut')
elif dev.override_disabled or 'OVERRIDE' not in test.status:
# override_disabled is set to True if one or more critical attributes