Catch non-blocking SMART errors between tests

* This doesn't block further tests, just ensures Disk Attributes fails
This commit is contained in:
2Shirt 2020-01-20 18:31:29 -07:00
parent 661681b806
commit 710fcc29dc
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -195,6 +195,11 @@ class State():
disk.tests['Disk Self-Test'].report.append(
std.color_string('Please manually review SMART data', 'YELLOW'),
)
else:
# No blocking errors encountered, check for minor attribute failures
if not disk.check_attributes(only_blocking=False):
disk.tests['Disk Attributes'].failed = True
disk.tests['Disk Attributes'].set_status('Failed')
# Disable tests if necessary
if disable_tests: