Removed unused get_status_color and Skipped status

This commit is contained in:
2Shirt 2018-12-22 18:07:06 -07:00
parent 6d9f50629c
commit c15eb85a5e
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -67,7 +67,7 @@ QUICK_LABEL = '{YELLOW}(Quick){CLEAR}'.format(**COLORS)
SIDE_PANE_WIDTH = 20
STATUSES = {
'RED': ['Denied', 'ERROR', 'NS', 'OVERRIDE', 'TimedOut'],
'YELLOW': ['Aborted', 'N/A', 'Skipped', 'Unknown', 'Working'],
'YELLOW': ['Aborted', 'N/A', 'Unknown', 'Working'],
'GREEN': ['CS'],
}
TESTS_CPU = ['Prime95']
@ -732,17 +732,6 @@ def get_read_rate(s):
real_rate = convert_to_bytes(human_rate)
return real_rate
def get_status_color(s):
"""Get color based on status, returns str."""
color = COLORS['CLEAR']
if s in ['Denied', 'ERROR', 'NS', 'OVERRIDE']:
color = COLORS['RED']
elif s in ['Aborted', 'N/A', 'Unknown', 'Working', 'Skipped']:
color = COLORS['YELLOW']
elif s in ['CS']:
color = COLORS['GREEN']
return color
def menu_diags(state, args):
"""Main menu to select and run HW tests."""
args = [a.lower() for a in args]