Lines Matching refs:lines

178 	def __init__(self, lines: Iterator[Tuple[int, str]]):
180 self._lines = lines
258 return LineStream(lines=isolate_ktap_output(kernel_output))
284 def parse_ktap_header(lines: LineStream, test: Test) -> bool:
300 ktap_match = KTAP_START.match(lines.peek())
301 tap_match = TAP_START.match(lines.peek())
310 test.log.append(lines.pop())
315 def parse_test_header(lines: LineStream, test: Test) -> bool:
330 match = TEST_HEADER.match(lines.peek())
333 test.log.append(lines.pop())
339 def parse_test_plan(lines: LineStream, test: Test) -> bool:
356 match = TEST_PLAN.match(lines.peek())
361 test.log.append(lines.pop())
373 def peek_test_name_match(lines: LineStream, test: Test) -> bool:
391 line = lines.peek()
398 def parse_test_result(lines: LineStream, test: Test,
421 line = lines.peek()
428 test.log.append(lines.pop())
452 def parse_diagnostic(lines: LineStream) -> List[str]:
469 while lines and not TEST_RESULT.match(lines.peek()) and not \
470 TEST_HEADER.match(lines.peek()):
471 log.append(lines.pop())
684 def parse_test(lines: LineStream, expected_num: int, log: List[str]) -> Test:
729 main = parse_ktap_header(lines, test)
734 parse_test_plan(lines, test)
739 parent_test = parse_test_header(lines, test)
743 parse_test_plan(lines, test)
754 sub_log = parse_diagnostic(lines)
756 if not lines or (peek_test_name_match(lines, test) and
771 sub_test = parse_test(lines, test_num, sub_log)
777 test.log.extend(parse_diagnostic(lines))
778 if (parent_test and peek_test_name_match(lines, test)) or \
780 parse_test_result(lines, test, expected_num)
806 lines = extract_tap_lines(kernel_output)
808 if not lines:
812 test = parse_test(lines, 0, [])
817 return TestResult(test.status, test, lines)