]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kunit: tool: Parse and print the reason tests are skipped
authorDavid Gow <david@davidgow.net>
Sat, 6 Jun 2026 01:38:17 +0000 (09:38 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 8 Jun 2026 01:50:06 +0000 (19:50 -0600)
commitbfd73e009d02b6f4500e60970dafaa65940be8ad
treee3ffb5adcc81dc033892fc6465a102263e5c30a0
parent5c1553dd5db306d84d539f84fa184d4694d6d050
kunit: tool: Parse and print the reason tests are skipped

When a KUnit test (or other KTAP test) is skipped, a "skip reason" can be
provided. kunit.py has never done anything with this, ignoring anything
included in the KTAP output after the 'SKIP' directive.

Since we have it, and it's used, print it in a nice friendly yellow in
parentheses after a skipped test's name.

(And, by parsing it, it can be included in the JUnit results as well.)

Link: https://lore.kernel.org/r/20260606013827.240790-1-david@davidgow.net
Signed-off-by: David Gow <david@davidgow.net>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_parser.py
tools/testing/kunit/kunit_tool_test.py