Lines Matching full:line
150 (line#, text).
165 """Advances the LineSteam to the next line, if necessary."""
176 """Returns the current line, without advancing the LineStream.
182 """Returns the current line and advances the LineStream to
183 the next line.
187 raise ValueError(f'LineStream: going past EOF, last line was {s}')
205 """Returns the line number of the current line."""
223 for line in kernel_output:
225 line = line.rstrip() # remove trailing \n
226 if not started and KTAP_START.search(line):
228 # to number of characters before version line
230 line.split('KTAP version')[0])
232 yield line_num, line[prefix_len:]
233 elif not started and TAP_START.search(line):
235 # to number of characters before version line
236 prefix_len = len(line.split('TAP version')[0])
238 yield line_num, line[prefix_len:]
239 elif started and KTAP_END.search(line):
244 line = line[prefix_len:]
245 yield line_num, line
246 elif EXECUTOR_ERROR.search(line):
247 yield line_num, line
261 header line
264 version line.
275 Parses KTAP/TAP header line and checks version number.
276 Returns False if fails to parse KTAP/TAP header line.
288 True if successfully parsed KTAP/TAP header line
308 Returns False if fails to parse test header line.
318 True if successfully parsed test header line
331 Parses test plan line and stores the expected number of subtests in
344 True if successfully parsed test plan line
361 Matches current line with the format of a test result line and checks
374 True if matched a test result line and the name matching the
377 line = lines.peek()
378 match = TEST_RESULT.match(line)
387 Parses test result line and stores the status and name in the test
390 Returns False if fails to parse test result line.
406 True if successfully parsed a test result line.
408 line = lines.peek()
409 match = TEST_RESULT.match(line)
410 skip_match = TEST_RESULT_SKIP.match(line)
412 # Check if line matches test result line format
440 Parse lines that do not match the format of a test result line or
441 test header line and returns them in list.
443 Line formats that are not parsed:
475 message - message to be centered in divider line
507 # is provided using a "# Subtest" header line.
519 for line in formatted.splitlines():
520 printer.print_with_timestamp(printer.yellow(line))
551 Prints result line with status of test.
579 Prints Test object to given printer. For a child test, the result line is
638 Prints summary line of test object. Color of line is dependent on
640 skipped, and red if the test fails or crashes. Summary line contains
708 - Subtest header (must include either the KTAP version line or
709 "# Subtest" header line)
711 Example (preferred format with both KTAP version line and
712 "# Subtest" line):
720 Example (only "# Subtest" line):
727 Example (only KTAP version line, compliant with KTAP v1 spec):
734 - Test result line
759 # If parsing the main/top-level test, parse KTAP version line and
768 # the KTAP version line and/or subtest header line
773 # If KTAP version line and/or subtest header is found, attempt
785 # result line with matching name to subtest header is found
809 # If not main test, look for test result line
812 test.add_error(printer, 'missing subtest result line!')
838 results and print condensed test results and summary line.