kunit.py (666fab4a3ea143315a9c059fad9f3a0f1365d54b) | kunit.py (3959d0a63b3202ea2aa12b3f6effd5400d773d31) |
---|---|
1#!/usr/bin/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> --- 323 unchanged lines hidden (view full) --- 332 elif cli_args.subcommand == 'parse': 333 if cli_args.file == None: 334 kunit_output = sys.stdin 335 else: 336 with open(cli_args.file, 'r') as f: 337 kunit_output = f.read().splitlines() 338 request = KunitParseRequest(cli_args.raw_output, 339 kunit_output, | 1#!/usr/bin/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> --- 323 unchanged lines hidden (view full) --- 332 elif cli_args.subcommand == 'parse': 333 if cli_args.file == None: 334 kunit_output = sys.stdin 335 else: 336 with open(cli_args.file, 'r') as f: 337 kunit_output = f.read().splitlines() 338 request = KunitParseRequest(cli_args.raw_output, 339 kunit_output, |
340 cli_args.build_dir, | 340 None, |
341 cli_args.json) 342 result = parse_tests(request) 343 if result.status != KunitStatus.SUCCESS: 344 sys.exit(1) 345 else: 346 parser.print_help() 347 348if __name__ == '__main__': 349 main(sys.argv[1:]) | 341 cli_args.json) 342 result = parse_tests(request) 343 if result.status != KunitStatus.SUCCESS: 344 sys.exit(1) 345 else: 346 parser.print_help() 347 348if __name__ == '__main__': 349 main(sys.argv[1:]) |