Catch non-blocking SMART errors between tests
* This doesn't block further tests, just ensures Disk Attributes fails
This commit is contained in:
parent
661681b806
commit
710fcc29dc
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue