From 7d66b723ca4bed52dfb51b12c6a11dad9853f4e2 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 6 Dec 2019 19:34:53 -0700 Subject: [PATCH] Update test report on ERROR --- scripts/wk/hw/diags.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/wk/hw/diags.py b/scripts/wk/hw/diags.py index d101ba2d..f646df5a 100644 --- a/scripts/wk/hw/diags.py +++ b/scripts/wk/hw/diags.py @@ -42,7 +42,9 @@ IO_ALT_TEST_SIZE_FACTOR = 0.01 IO_BLOCK_SIZE = 512 * 1024 IO_CHUNK_SIZE = 32 * 1024**2 IO_MINIMUM_TEST_SIZE = 10 * 1024**3 -IO_RATE_REGEX = re.compile(r'(?P\d+) bytes.* (?P\S+) s(,|ecs )') +IO_RATE_REGEX = re.compile( + r'(?P\d+) bytes.* (?P\S+) s(?:,|ecs )', + ) MENU_ACTIONS = ( 'Audio Test', 'Keyboard Test', @@ -736,6 +738,7 @@ def disk_io_benchmark(state, test_objects, skip_usb=True): # Something went wrong LOG.error('%s', err) test.set_status('ERROR') + test.report.append(std.color_string(' Unknown Error', 'RED')) # Mark test(s) aborted if necessary if aborted: