]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kunit: tool: Recommend --raw_output=all if no KTAP found
authorDavid Gow <david@davidgow.net>
Fri, 27 Feb 2026 10:56:49 +0000 (18:56 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 Apr 2026 19:47:52 +0000 (13:47 -0600)
commitb73f50ffd4bddcd42b312a6c2b3d990f2cde7bf7
treec3ee0dfb332f6c4dd31427476e57697fb0477507
parentb5f92fc4a7ac57c88a4ac600cf401171b3ea3b5f
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>
tools/testing/kunit/kunit_parser.py