kunit_parser.py (9c3a0f285248899dfa81585bc5d5bc9ebdb8fead) kunit_parser.py (6a499c9c42d039ce9341a0c655a76c8dd56f0578)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Parses test results from a kernel dmesg log.
4#
5# Copyright (C) 2019, Google LLC.
6# Author: Felix Guo <felixguoxiuping@gmail.com>
7# Author: Brendan Higgins <brendanhiggins@google.com>
8

--- 92 unchanged lines hidden (view full) ---

101 started = True
102 yield line_num, line[prefix_len:]
103 elif kunit_end_re.search(line):
104 break
105 elif started:
106 yield line_num, line[prefix_len:]
107 return LineStream(lines=isolate_kunit_output(kernel_output))
108
1# SPDX-License-Identifier: GPL-2.0
2#
3# Parses test results from a kernel dmesg log.
4#
5# Copyright (C) 2019, Google LLC.
6# Author: Felix Guo <felixguoxiuping@gmail.com>
7# Author: Brendan Higgins <brendanhiggins@google.com>
8

--- 92 unchanged lines hidden (view full) ---

101 started = True
102 yield line_num, line[prefix_len:]
103 elif kunit_end_re.search(line):
104 break
105 elif started:
106 yield line_num, line[prefix_len:]
107 return LineStream(lines=isolate_kunit_output(kernel_output))
108
109def raw_output(kernel_output) -> None:
110 for line in kernel_output:
111 print(line.rstrip())
112
113DIVIDER = '=' * 60
114
115RESET = '\033[0;0m'
116
117def red(text) -> str:
118 return '\033[1;31m' + text + RESET
119
120def yellow(text) -> str:

--- 312 unchanged lines hidden ---
109DIVIDER = '=' * 60
110
111RESET = '\033[0;0m'
112
113def red(text) -> str:
114 return '\033[1;31m' + text + RESET
115
116def yellow(text) -> str:

--- 312 unchanged lines hidden ---