From 017c0e33858ef37ff3bb52157906e3db83ae6d73 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 5 Feb 2019 21:49:00 -0700 Subject: [PATCH] Avoid marking aborted badblocks test as failed --- .bin/Scripts/functions/hw_diags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index 3d6b5d03..22f76aff 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -981,7 +981,8 @@ def run_badblocks_test(state, test): else: test.report.append(' {YELLOW}{line}{CLEAR}'.format( line=line, **COLORS)) - test.failed = True + if not test.aborted: + test.failed = True if test.aborted: test.report.append(' {YELLOW}Aborted{CLEAR}'.format(**COLORS)) test.update_status('Aborted')