parse_line($string);
The cgroup selftests print a diagnostic line before a failed subtest result, for example the line from values_close_report():
# [FAIL] actual=18722816 expected=30408704 | diff=11685888 | ...
# not ok 3 test_memcg_min
openQA shows only the result line in the subtest box. This parser keeps the diagnostic lines and appends them to the next not ok result line:
# not ok 3 test_memcg_min # [FAIL] actual=18722816 expected=30408704 | ...
The subtest name stays in front of the first #, so the openQA box title and the known issues lookup do not change. All other lines are returned unchanged.