]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: Fix duplicated test number reporting
authorMark Brown <broonie@kernel.org>
Fri, 17 Apr 2026 16:57:50 +0000 (17:57 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 17 Apr 2026 17:29:03 +0000 (11:29 -0600)
commit83ef26f911432d9c98b6d8b6ed0709a8b79cd834
tree4fbdf487a932905c681a8cae4c9831b4c14e5a68
parentdf410ad40ca0a57c46c06de2b992de8baf3a7f5a
selftests: Fix duplicated test number reporting

Commit 2964f6b816c2 ("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: 2964f6b816c2 ("selftests: Use ktap helpers for runner.sh")
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest/runner.sh