Removed unused get_status_color and Skipped status
This commit is contained in:
parent
6d9f50629c
commit
c15eb85a5e
1 changed files with 1 additions and 12 deletions
|
|
@ -67,7 +67,7 @@ QUICK_LABEL = '{YELLOW}(Quick){CLEAR}'.format(**COLORS)
|
||||||
SIDE_PANE_WIDTH = 20
|
SIDE_PANE_WIDTH = 20
|
||||||
STATUSES = {
|
STATUSES = {
|
||||||
'RED': ['Denied', 'ERROR', 'NS', 'OVERRIDE', 'TimedOut'],
|
'RED': ['Denied', 'ERROR', 'NS', 'OVERRIDE', 'TimedOut'],
|
||||||
'YELLOW': ['Aborted', 'N/A', 'Skipped', 'Unknown', 'Working'],
|
'YELLOW': ['Aborted', 'N/A', 'Unknown', 'Working'],
|
||||||
'GREEN': ['CS'],
|
'GREEN': ['CS'],
|
||||||
}
|
}
|
||||||
TESTS_CPU = ['Prime95']
|
TESTS_CPU = ['Prime95']
|
||||||
|
|
@ -732,17 +732,6 @@ def get_read_rate(s):
|
||||||
real_rate = convert_to_bytes(human_rate)
|
real_rate = convert_to_bytes(human_rate)
|
||||||
return real_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):
|
def menu_diags(state, args):
|
||||||
"""Main menu to select and run HW tests."""
|
"""Main menu to select and run HW tests."""
|
||||||
args = [a.lower() for a in args]
|
args = [a.lower() for a in args]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue