Avoid marking aborted badblocks test as failed

This commit is contained in:
2Shirt 2019-02-05 21:49:00 -07:00
parent 82377bc1ab
commit 017c0e3385
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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')