Lines Matching refs:lines

161 	def __init__(self, lines: Iterator[Tuple[int, str]]):
163 self._lines = lines
250 return LineStream(lines=isolate_ktap_output(kernel_output))
274 def parse_ktap_header(lines: LineStream, test: Test) -> bool:
290 ktap_match = KTAP_START.match(lines.peek())
291 tap_match = TAP_START.match(lines.peek())
300 test.log.append(lines.pop())
305 def parse_test_header(lines: LineStream, test: Test) -> bool:
320 match = TEST_HEADER.match(lines.peek())
323 test.log.append(lines.pop())
329 def parse_test_plan(lines: LineStream, test: Test) -> bool:
346 match = TEST_PLAN.match(lines.peek())
350 test.log.append(lines.pop())
359 def peek_test_name_match(lines: LineStream, test: Test) -> bool:
377 line = lines.peek()
384 def parse_test_result(lines: LineStream, test: Test,
407 line = lines.peek()
414 test.log.append(lines.pop())
437 def parse_diagnostic(lines: LineStream) -> List[str]:
454 while lines and not TEST_RESULT.match(lines.peek()) and not \
455 TEST_HEADER.match(lines.peek()):
456 log.append(lines.pop())
635 def parse_test(lines: LineStream, expected_num: int, log: List[str]) -> Test:
680 main = parse_ktap_header(lines, test)
685 parse_test_plan(lines, test)
691 parent_test = parse_test_header(lines, test)
695 parse_test_plan(lines, test)
706 sub_log = parse_diagnostic(lines)
708 if not lines or (peek_test_name_match(lines, test) and
723 sub_test = parse_test(lines, test_num, sub_log)
729 test.log.extend(parse_diagnostic(lines))
730 if (parent_test and peek_test_name_match(lines, test)) or \
732 parse_test_result(lines, test, expected_num)
766 lines = extract_tap_lines(kernel_output)
768 if not lines:
773 test = parse_test(lines, 0, [])