]> git.hungrycats.org Git - linux/commit
selftests: rds: Make rds selftests TAP compliant
authorAllison Henderson <achender@kernel.org>
Mon, 4 May 2026 05:41:43 +0000 (22:41 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 May 2026 02:19:55 +0000 (19:19 -0700)
commit06d5c34517e0a9359db233bee71265fad25e3bf5
treee954094fc3b4a2061c2d031af6b761b1e73aecae
parentc8781c61fd60552c8c65c6abb7146e9ef4b31dcc
selftests: rds: Make rds selftests TAP compliant

This patch updates the rds selftests output to be TAP compliant.

Use ksft_pr() to mark debug output with a leading '# ' so that TAP
parsers treat it as commentary, and convert all informational print()
calls to use ksft_pr(). sys.exit(0) is changed to os._exit(0) to
avoid duplicate prints from the buffered TAP output. The console
output from the tcpdump subprocess is silenced, and the gcov console
output is redirected to a gcovr.log.

Finally adjust the exit path so that the hash check loop sets a
return code instead exiting directly. Then print the TAP results
and totals lines before exiting.

Signed-off-by: Allison Henderson <achender@kernel.org>
Link: https://patch.msgid.link/20260504054143.4027538-11-achender@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/rds/run.sh
tools/testing/selftests/net/rds/test.py