Post UNKNOWN CPU results in DIAG FAIL color

This commit is contained in:
2Shirt 2019-07-08 18:20:49 -06:00
parent 90f0fb58d9
commit a732c3a9ff
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1230,6 +1230,7 @@ def run_hw_tests(state):
cpu_failed = False
for test in state.cpu.tests.values():
cpu_failed = cpu_failed or test.failed
cpu_failed = cpu_failed or not test.passed
color_code = 'Diags FAIL' if cpu_failed else 'Diags'
state.ost.post_device_results(
state.cpu, state.ticket_id, state.ticket_name, color_code)