Skip to content

Commit 922d1dd

Browse files
sulixshuahkh
authored andcommitted
kunit: tool: Accept --raw_output=full as an alias of 'all'
I can never remember whether --raw_output takes 'all' or 'full'. No reason we can't support both. For the record, 'all' is the recommended, documented option. Link: https://lore.kernel.org/r/20250730031624.1911689-1-davidgow@google.com Signed-off-by: David Gow <davidgow@google.com> Reviewed-by: Rae Moar <rmoar@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent bd80c4d commit 922d1dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/kunit/kunit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def parse_tests(request: KunitParseRequest, metadata: kunit_json.Metadata, input
228228
fake_test.counts.passed = 1
229229

230230
output: Iterable[str] = input_data
231-
if request.raw_output == 'all':
231+
if request.raw_output == 'all' or request.raw_output == 'full':
232232
pass
233233
elif request.raw_output == 'kunit':
234234
output = kunit_parser.extract_tap_lines(output)
@@ -425,7 +425,7 @@ def add_parse_opts(parser: argparse.ArgumentParser) -> None:
425425
parser.add_argument('--raw_output', help='If set don\'t parse output from kernel. '
426426
'By default, filters to just KUnit output. Use '
427427
'--raw_output=all to show everything',
428-
type=str, nargs='?', const='all', default=None, choices=['all', 'kunit'])
428+
type=str, nargs='?', const='all', default=None, choices=['all', 'full', 'kunit'])
429429
parser.add_argument('--json',
430430
nargs='?',
431431
help='Prints parsed test results as JSON to stdout or a file if '

0 commit comments

Comments
 (0)