kunit.py (309e22effb741a8c65131a2694a49839fd685a27) kunit.py (c2bb92bc4ea13842fdd27819c0d5b48df2b86ea5)
1#!/usr/bin/env python3
2# SPDX-License-Identifier: GPL-2.0
3#
4# A thin wrapper on top of the KUnit Kernel
5#
6# Copyright (C) 2019, Google LLC.
7# Author: Felix Guo <felixguoxiuping@gmail.com>
8# Author: Brendan Higgins <brendanhiggins@google.com>

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

197 fake_test = kunit_parser.Test()
198 fake_test.status = kunit_parser.TestStatus.SUCCESS
199 fake_test.counts.passed = 1
200
201 output: Iterable[str] = input_data
202 if request.raw_output == 'all':
203 pass
204 elif request.raw_output == 'kunit':
1#!/usr/bin/env python3
2# SPDX-License-Identifier: GPL-2.0
3#
4# A thin wrapper on top of the KUnit Kernel
5#
6# Copyright (C) 2019, Google LLC.
7# Author: Felix Guo <felixguoxiuping@gmail.com>
8# Author: Brendan Higgins <brendanhiggins@google.com>

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

197 fake_test = kunit_parser.Test()
198 fake_test.status = kunit_parser.TestStatus.SUCCESS
199 fake_test.counts.passed = 1
200
201 output: Iterable[str] = input_data
202 if request.raw_output == 'all':
203 pass
204 elif request.raw_output == 'kunit':
205 output = kunit_parser.extract_tap_lines(output, lstrip=False)
205 output = kunit_parser.extract_tap_lines(output)
206 for line in output:
207 print(line.rstrip())
208 parse_time = time.time() - parse_start
209 return KunitResult(KunitStatus.SUCCESS, parse_time), fake_test
210
211
212 # Actually parse the test results.
213 test = kunit_parser.parse_run_tests(input_data)

--- 302 unchanged lines hidden ---
206 for line in output:
207 print(line.rstrip())
208 parse_time = time.time() - parse_start
209 return KunitResult(KunitStatus.SUCCESS, parse_time), fake_test
210
211
212 # Actually parse the test results.
213 test = kunit_parser.parse_run_tests(input_data)

--- 302 unchanged lines hidden ---