Include more lines in the badblocks reports

Partially addresses issue #27
This commit is contained in:
2Shirt 2022-07-10 16:45:08 -07:00
parent 9bcb0bdb32
commit c6ff30722d
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -29,8 +29,10 @@ def check_surface_scan_results(test_obj, log_path) -> None:
"""Check results and set test status."""
with open(log_path, 'r', encoding='utf-8') as _f:
for line in _f.readlines():
# TODO: Test further to restrict report to just the results
line = strip_colors(line.strip())
if not line or BADBLOCKS_SKIP_REGEX.match(line):
#if not line or BADBLOCKS_SKIP_REGEX.match(line):
if not line:
# Skip
continue
match = BADBLOCKS_REGEX.search(line)