linux/tools/testing/selftests/kselftest
Brendan Jackman d9e6269e33 selftests/run_kselftest.sh: exit with error if tests fail
Parsing KTAP is quite an inconvenience, but most of the time the thing
you really want to know is "did anything fail"?

Let's give the user the his information without them needing
to parse anything.

Because of the use of subshells and namespaces, this needs to be
communicated via a file. Just write arbitrary data into the file and
treat non-empty content as a signal that something failed.

In case any user depends on the current behaviour, such as running this
from a script with `set -e` and parsing the result for failures
afterwards, add a flag they can set to get the old behaviour, namely
--no-error-on-fail.

Link: https://lore.kernel.org/r/20251111-b4-ksft-error-on-fail-v3-1-0951a51135f6@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2025-11-19 15:00:22 -07:00
..
ksft.py selftests: Warn about skipped tests in result summary 2025-01-14 17:06:31 -07:00
ktap_helpers.sh AT_EXECVE_CHECK introduction for v6.14-rc1 2025-01-22 20:34:42 -08:00
module.sh printf: convert self-test to KUnit 2025-03-13 10:26:33 -07:00
prefix.pl
runner.sh selftests/run_kselftest.sh: exit with error if tests fail 2025-11-19 15:00:22 -07:00