kselftest/arm64: Improve output for skipped TPIDR2 ABI test
authorMark Brown <broonie@kernel.org>
Fri, 24 Nov 2023 15:22:21 +0000 (15:22 +0000)
committerWill Deacon <will@kernel.org>
Mon, 11 Dec 2023 12:00:43 +0000 (12:00 +0000)
commit33c1a7785a41216ec44d0fadc1890103e2db88b0
tree7c9baaf4bcfcb814a98571b02b1bed8f211645bc
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab
kselftest/arm64: Improve output for skipped TPIDR2 ABI test

When TPIDR2 is not supported the tpidr2 ABI test prints the same message
for each skipped test:

  ok 1 skipped, TPIDR2 not supported

which isn't ideal for test automation software since it tracks kselftest
results based on the string used to describe the test. This is also not
standard KTAP output, the expected format is:

  ok 1 # SKIP default_value

Updated the program to generate this, using the same set of test names that
we would run if the test actually executed.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20231124-kselftest-arm64-tpidr2-skip-v1-1-e05d0ccef101@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/tpidr2.c