Differentiate between not-run and unknown results

This commit is contained in:
2Shirt 2018-09-27 21:00:00 -06:00
parent 26eadebf21
commit c43ba34cbf
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -170,7 +170,7 @@ def get_smart_value(smart_data, smart_id):
def get_status_color(s): def get_status_color(s):
"""Get color based on status, returns str.""" """Get color based on status, returns str."""
color = COLORS['CLEAR'] color = COLORS['CLEAR']
if s in ['Denied', 'NS', 'OVERRIDE']: if s in ['Denied', 'ERROR', 'NS', 'OVERRIDE']:
color = COLORS['RED'] color = COLORS['RED']
elif s in ['Aborted', 'Unknown', 'Working', 'Skipped']: elif s in ['Aborted', 'Unknown', 'Working', 'Skipped']:
color = COLORS['YELLOW'] color = COLORS['YELLOW']
@ -364,10 +364,10 @@ def run_iobenchmark():
dev_size = int(dev_size) dev_size = int(dev_size)
except: except:
# Failed to get dev size, requires manual testing instead # Failed to get dev size, requires manual testing instead
TESTS['iobenchmark']['Status'][name] = 'Unknown' TESTS['iobenchmark']['Status'][name] = 'ERROR'
continue continue
if dev_size < IO_VARS['Minimum Dev Size']: if dev_size < IO_VARS['Minimum Dev Size']:
TESTS['iobenchmark']['Status'][name] = 'Unknown' TESTS['iobenchmark']['Status'][name] = 'ERROR'
continue continue
# Calculate dd values # Calculate dd values