]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: net: move amt to socat for better compatibility
authorJakub Kicinski <kuba@kernel.org>
Thu, 9 May 2024 16:19:52 +0000 (09:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:24 +0000 (09:49 +0200)
commit1c402509e2341ebb4d21b4cecf4c3db66276f3c7
tree0bac709830973a2d6a6cf1d0472bad02b13a859e
parenta15b16fa9785e4c494241b9bc7113c3c3ab978dd
selftests: net: move amt to socat for better compatibility

[ Upstream commit 4c639b6a7b9db236c0907aca8e92d1537076f2cd ]

The test seems to expect that nc will exit after the first
received message. This is not the case with Ncat 7.94.
There are multiple versions of nc out there, switch
to socat for better compatibility.

Tell socat to exit after 128 bytes and pad the message.

Since the test sets -e make sure we don't set exit code
(|| true) and print the pass / fail rather then silently
moving over the test and just setting non-zero exit code
with no output indicating what failed.

Fixes: c08e8baea78e ("selftests: add amt interface selftest script")
Acked-by: Paolo Abeni<pabeni@redhat.com>
Tested-by: Taehee Yoo <ap420073@gmail.com>
Link: https://lore.kernel.org/r/20240509161952.3940476-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/amt.sh