Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: net: report output format as TAP 13 in Python tests

The Python lib based tests report that they are producing
"KTAP version 1", but really we aren't making use of any
KTAP features, like subtests. Our output is plain TAP.

Report TAP 13 instead of KTAP 1, this is what mptcp tests do,
and what NIPA knows how to parse best. For HW testing we need
precise subtest result tracking.

Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250228180007.83325-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+3 -3
+2 -2
tools/testing/selftests/drivers/net/README.rst
··· 107 107 1..1 108 108 # timeout set to 45 109 109 # selftests: drivers/net: ping.py 110 - # KTAP version 1 110 + # TAP version 13 111 111 # 1..3 112 112 # ok 1 ping.test_v4 113 113 # ok 2 ping.test_v6 ··· 128 128 Run the test:: 129 129 130 130 [/root] # ./ksft-net-drv/drivers/net/ping.py 131 - KTAP version 1 131 + TAP version 13 132 132 1..3 133 133 ok 1 ping.test_v4 134 134 ok 2 ping.test_v6 # SKIP Test requires IPv6 connectivity
+1 -1
tools/testing/selftests/net/lib/py/ksft.py
··· 207 207 208 208 totals = {"pass": 0, "fail": 0, "skip": 0, "xfail": 0} 209 209 210 - print("KTAP version 1") 210 + print("TAP version 13") 211 211 print("1.." + str(len(cases))) 212 212 213 213 global KSFT_RESULT