Set pass/fail attributes in disk_attribute_check()

This commit is contained in:
2Shirt 2020-01-08 19:02:09 -07:00
parent a7bb7e1e23
commit 0a2976d9ce
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 3 additions and 0 deletions

View file

@ -31,6 +31,7 @@ KNOWN_DISK_ATTRIBUTES = {
5: {'Hex': '05', 'Blocking': True, 'Warning': None, 'Error': 1, 'Maximum': None, },
9: {'Hex': '09', 'Blocking': False, 'Warning': 17532, 'Error': 26298, 'Maximum': 100000,},
10: {'Hex': '10', 'Blocking': False, 'Warning': 1, 'Error': 10, 'Maximum': 10000, },
174: {'Hex': 'B8', 'Blocking': False, 'Warning': 1, 'Error': 10, 'Maximum': 10000, },
184: {'Hex': 'B8', 'Blocking': False, 'Warning': 1, 'Error': 10, 'Maximum': 10000, },
187: {'Hex': 'BB', 'Blocking': False, 'Warning': 1, 'Error': 10, 'Maximum': 10000, },
188: {'Hex': 'BC', 'Blocking': False, 'Warning': 1, 'Error': 10, 'Maximum': 10000, },

View file

@ -733,8 +733,10 @@ def disk_attribute_check(state, test_objects):
continue
if test.dev.check_attributes():
test.passed = True
test.set_status('Passed')
else:
test.failed = True
test.set_status('Failed')
# Done