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

Configure Feed

Select the types of activity you want to include in your feed.

kunit: tool: Recommend --raw_output=all if no KTAP found

If no KTAP header is found in the kernel output (e.g., because the kernel
crashed before the KUnit executor was run), it's very useful to re-run the
test with --raw_output=all, as that will show any error output (such as a
stacktrace, log message, BUG, etc). This is not particularly intuitive,
however, as --raw_output=all is not well known.

Add an extra log line to advertise --raw_output=all in this case, as it's
a terrible user experience to just get "Did any KUnit tests run?"

Signed-off-by: David Gow <david@davidgow.net>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

David Gow and committed by
Shuah Khan
b73f50ff b5f92fc4

+2 -1
+2 -1
tools/testing/kunit/kunit_parser.py
··· 857 857 test = Test() 858 858 if not lines: 859 859 test.name = '<missing>' 860 - test.add_error(printer, 'Could not find any KTAP output. Did any KUnit tests run?') 860 + test.add_error(printer, 'Could not find any KTAP output. Did any KUnit tests run?\n' + 861 + 'Try running with the --raw_output=all option to see any log messages.') 861 862 test.status = TestStatus.FAILURE_TO_PARSE_TESTS 862 863 else: 863 864 test = parse_test(lines, 0, [], False, printer)