linux/tools/testing/selftests/kselftest
Paolo Bonzini b85d387c9b kselftest: fix TAP output for skipped tests
According to the TAP specification, a skipped test must be marked as "ok"
and annotated with the SKIP directive, for example

   ok 23 # skip Insufficient flogiston pressure.
   (https://testanything.org/tap-specification.html)

Fix the kselftest infrastructure to match this.

For ksft_exit_skip, it is preferrable to emit a dummy plan line that
indicates the whole test was skipped, but this is not always possible
because of ksft_exit_skip being used as a "shortcut" by the tests.
In that case, print the test counts and a normal "ok" line.  The format
is now the same independent of whether msg is NULL or not (but it is
never NULL in any caller right now).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2020-07-06 15:17:59 -06:00
..
module.sh selftests: Fix dangling documentation references to kselftest_module.sh 2019-12-11 10:27:01 -07:00
prefix.pl kselftest: Support old perl versions 2019-12-11 10:31:16 -07:00
runner.sh kselftest: fix TAP output for skipped tests 2020-07-06 15:17:59 -06:00