Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Gow and committed by
Shuah Khan
922d1dde bd80c4d6

+2 -2
+2 -2
tools/testing/kunit/kunit.py
··· 228 228 fake_test.counts.passed = 1 229 229 230 230 output: Iterable[str] = input_data 231 - if request.raw_output == 'all': 231 + if request.raw_output == 'all' or request.raw_output == 'full': 232 232 pass 233 233 elif request.raw_output == 'kunit': 234 234 output = kunit_parser.extract_tap_lines(output) ··· 425 425 parser.add_argument('--raw_output', help='If set don\'t parse output from kernel. ' 426 426 'By default, filters to just KUnit output. Use ' 427 427 '--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']) 429 429 parser.add_argument('--json', 430 430 nargs='?', 431 431 help='Prints parsed test results as JSON to stdout or a file if '