Re: [PATCH] selftests: Fix duplicated test number reporting
From: Shuah Khan
Date: Fri Apr 17 2026 - 13:25:52 EST
On 4/17/26 10:57, Mark Brown wrote:
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.
Fixes: 2964f6b816c2 ("selftests: Use ktap helpers for runner.sh")
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
That was quick - I applied this one also to linux-kselftest next.
I will send one pr with all 4 fixes tomorrow.
thanks,
-- Shuah