Replace 'N/A' result in post_system_info()

Addresses issue #47
This commit is contained in:
2Shirt 2023-09-23 16:46:15 -07:00
parent 8cb9e6c840
commit 146b3304aa
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 15 additions and 10 deletions

View file

@ -146,15 +146,16 @@ SMC_IDS = {
'TS0C': {'CPU Temp': False, 'Source': 'CPU B DIMM Exit Ambient'},
}
STATUS_COLORS = {
'Passed': 'GREEN',
'Aborted': 'YELLOW',
'N/A': 'YELLOW',
'Skipped': 'YELLOW',
'Unknown': 'YELLOW',
'Working': 'YELLOW',
'Denied': 'RED',
'ERROR': 'RED',
'Failed': 'RED',
'Done': 'CYAN',
'Passed': 'GREEN',
'Aborted': 'YELLOW',
'N/A': 'YELLOW',
'Skipped': 'YELLOW',
'Unknown': 'YELLOW',
'Working': 'YELLOW',
'Denied': 'RED',
'ERROR': 'RED',
'Failed': 'RED',
'TimedOut': 'RED',
}
TEMP_COLORS = {

View file

@ -906,8 +906,12 @@ def post_system_info(state, test_objects, test_mode=False) -> None:
# Post to osTicket
state.ost.post_response('\n'.join(report))
# Update test object(s)
for test_object in test_objects:
test_object.passed = True
test_object.set_status('Done')
# Done
test_objects[0].set_status('N/A')
state.update_progress_file()