linux/tools/testing/selftests/kselftest
Mark Brown 83ef26f911 selftests: Fix duplicated test number reporting
Commit 2964f6b816 ("selftests: Use ktap helpers for runner.sh") converted
the prints in runner.sh to use the relevant helpers from ktap_helpers.sh,
not modifying any of the strings printed in the process. This included
converting all the result reports to use the relevant ktap_test_ function.
Since the output was originally KTAP compliant the strings reported for
test names now include test numbers:

  ok 59 59 selftests: arm64: syscall-abi

instead of the expected format:

  ok 59 selftests: arm64: syscall-abi

which causes result parsers to interpret the second number as part of the
test name.

Given the use of the helpers the tracking of test numbers by runner.sh is
now redundant, remove it entirely to restore the expected output format.

Link: https://lore.kernel.org/r/20260417-selftests-fix-double-number-v1-1-1be5d7c36b94@kernel.org
Fixes: 2964f6b816 ("selftests: Use ktap helpers for runner.sh")
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2026-04-17 11:29:03 -06: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 tweewide: Fix most Shebang lines 2020-12-08 23:30:04 +09:00
runner.sh selftests: Fix duplicated test number reporting 2026-04-17 11:29:03 -06:00