Updated hw_diags.py

This commit is contained in:
2Shirt 2018-12-27 19:55:41 -07:00
parent ffd07e07fd
commit 166a293864
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1320,7 +1320,8 @@ def run_mprime_test(state, test):
if re.search(r'(error|fail)', line, re.IGNORECASE):
test.failed = True
test.update_status('NS')
test.report.append(' {YELLOW}{line}{CLEAR}'.format(line=line, **COLORS))
test.report.append(
' {YELLOW}{line}{CLEAR}'.format(line=line, **COLORS))
# prime.log (CS check)
if log == 'prime.log':
@ -1349,7 +1350,8 @@ def run_mprime_test(state, test):
for line in sorted(_tmp['Pass'].keys()):
test.report.append(' {}'.format(line))
for line in sorted(_tmp['Warn'].keys()):
test.report.append(' {YELLOW}{line}{CLEAR}'.format(line=line, **COLORS))
test.report.append(
' {YELLOW}{line}{CLEAR}'.format(line=line, **COLORS))
# Unknown result
if not (test.aborted or test.failed or test.passed):