Prevent updating OVERRIDE to CS

This commit is contained in:
2Shirt 2019-03-16 15:11:42 -06:00
parent 70b8d2536a
commit 86f81f2720
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1460,7 +1460,7 @@ def run_nvme_smart_tests(state, test, update_mode=False):
test.failed = True
test.update_status('NS')
elif dev.smart_attributes:
if dev.disk_ok and dev.self_test_passed:
if dev.disk_ok and dev.self_test_passed and 'OVERRIDE' not in test.status:
test.passed = True
test.update_status('CS')
elif test.aborted: