Adjusted self-test results formatting

This commit is contained in:
2Shirt 2020-01-13 15:45:07 -07:00
parent ea9a9f9a46
commit d8617df871
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -619,7 +619,7 @@ def check_self_test_results(test_obj, aborted=False):
# known progress instead of just "was aborted buy host"
test_details = test_obj.dev.get_smart_self_test_details()
test_result = test_details.get('status', {}).get('string', 'Unknown')
test_obj.report.append(f' {test_result}')
test_obj.report.append(f' {test_result.capitalize()}')
if aborted and not (test_obj.passed or test_obj.failed):
test_obj.report.append(std.color_string(' Aborted', 'YELLOW'))
test_obj.set_status('Aborted')