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,6 +146,7 @@ SMC_IDS = {
'TS0C': {'CPU Temp': False, 'Source': 'CPU B DIMM Exit Ambient'}, 'TS0C': {'CPU Temp': False, 'Source': 'CPU B DIMM Exit Ambient'},
} }
STATUS_COLORS = { STATUS_COLORS = {
'Done': 'CYAN',
'Passed': 'GREEN', 'Passed': 'GREEN',
'Aborted': 'YELLOW', 'Aborted': 'YELLOW',
'N/A': 'YELLOW', 'N/A': 'YELLOW',

View file

@ -906,8 +906,12 @@ def post_system_info(state, test_objects, test_mode=False) -> None:
# Post to osTicket # Post to osTicket
state.ost.post_response('\n'.join(report)) 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 # Done
test_objects[0].set_status('N/A')
state.update_progress_file() state.update_progress_file()