Lines Matching full:lines

34 	log : List[str] - log of KTAP lines that correspond to the test
148 A class to represent the lines of kernel output.
157 def __init__(self, lines: Iterator[Tuple[int, str]]):
159 self._lines = lines
192 """Returns True if stream has more lines."""
198 """Empties all lines stored in LineStream object into
218 """Extracts KTAP lines from the kernel output."""
227 # start extracting KTAP lines and set prefix
234 # start extracting KTAP lines and set prefix
240 # stop extracting KTAP lines
248 return LineStream(lines=isolate_ktap_output(kernel_output))
273 def parse_ktap_header(lines: LineStream, test: Test, printer: Printer) -> bool:
283 lines - LineStream of KTAP output to parse
290 ktap_match = KTAP_START.match(lines.peek())
291 tap_match = TAP_START.match(lines.peek())
300 lines.pop()
305 def parse_test_header(lines: LineStream, test: Test) -> bool:
314 lines - LineStream of KTAP output to parse
320 match = TEST_HEADER.match(lines.peek())
324 lines.pop()
329 def parse_test_plan(lines: LineStream, test: Test) -> bool:
340 lines - LineStream of KTAP output to parse
346 match = TEST_PLAN.match(lines.peek())
352 lines.pop()
359 def peek_test_name_match(lines: LineStream, test: Test) -> bool:
370 lines - LineStream of KTAP output to parse
377 line = lines.peek()
384 def parse_test_result(lines: LineStream, test: Test,
400 lines - LineStream of KTAP output to parse
408 line = lines.peek()
415 lines.pop()
438 def parse_diagnostic(lines: LineStream) -> List[str]:
440 Parse lines that do not match the format of a test result line or
450 lines - LineStream of KTAP output to parse
453 Log of diagnostic lines
457 while lines and not any(re.match(lines.peek())
459 log.append(lines.pop())
690 def parse_test(lines: LineStream, expected_num: int, log: List[str], is_subtest: bool, printer: Priā€¦
741 lines - LineStream of KTAP output to parse
743 log - list of strings containing any preceding diagnostic lines
755 err_log = parse_diagnostic(lines)
762 ktap_line = parse_ktap_header(lines, test, printer)
763 test.log.extend(parse_diagnostic(lines))
764 parse_test_plan(lines, test)
769 ktap_line = parse_ktap_header(lines, test, printer)
770 subtest_line = parse_test_header(lines, test)
775 test.log.extend(parse_diagnostic(lines))
776 parse_test_plan(lines, test)
786 # or no more lines in stream.
787 sub_log = parse_diagnostic(lines)
789 if not lines or (peek_test_name_match(lines, test) and
804 sub_test = parse_test(lines, test_num, sub_log, True, printer)
810 test.log.extend(parse_diagnostic(lines))
811 if test.name != "" and not peek_test_name_match(lines, test):
814 parse_test_result(lines, test, expected_num, printer)
837 Using kernel output, extract KTAP lines, parse the lines for test
841 kernel_output - Iterable object contains lines of kernel output
848 lines = extract_tap_lines(kernel_output)
850 if not lines:
855 test = parse_test(lines, 0, [], False, printer)