* [PATCH net-next] selftests: netfilter: nft_flowtable.sh: bump socat timeout to 1m
@ 2024-05-11 6:48 Florian Westphal
2024-05-13 21:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Florian Westphal @ 2024-05-11 6:48 UTC (permalink / raw)
To: netdev; +Cc: Jakub Kicinski, netfilter-devel, Florian Westphal
Now that this test runs in netdev CI it looks like 10s isn't enough
for debug kernels:
selftests: net/netfilter: nft_flowtable.sh
2024/05/10 20:33:08 socat[12204] E write(7, 0x563feb16a000, 8192): Broken pipe
FAIL: file mismatch for ns1 -> ns2
-rw------- 1 root root 37345280 May 10 20:32 /tmp/tmp.Am0yEHhNqI
...
Looks like socat gets zapped too quickly, so increase timeout to 1m.
Could also reduce tx file size for KSFT_MACHINE_SLOW, but its preferrable
to have same test for both debug and nondebug.
Signed-off-by: Florian Westphal <fw@strlen.de>
---
tools/testing/selftests/net/netfilter/nft_flowtable.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/netfilter/nft_flowtable.sh b/tools/testing/selftests/net/netfilter/nft_flowtable.sh
index 86d516e8acd6..b3995550856a 100755
--- a/tools/testing/selftests/net/netfilter/nft_flowtable.sh
+++ b/tools/testing/selftests/net/netfilter/nft_flowtable.sh
@@ -17,6 +17,7 @@
source lib.sh
ret=0
+SOCAT_TIMEOUT=60
nsin=""
ns1out=""
@@ -350,12 +351,12 @@ test_tcp_forwarding_ip()
local dstport=$4
local lret=0
- timeout 10 ip netns exec "$nsb" socat -4 TCP-LISTEN:12345,reuseaddr STDIO < "$nsin" > "$ns2out" &
+ timeout "$SOCAT_TIMEOUT" ip netns exec "$nsb" socat -4 TCP-LISTEN:12345,reuseaddr STDIO < "$nsin" > "$ns2out" &
lpid=$!
busywait 1000 listener_ready
- timeout 10 ip netns exec "$nsa" socat -4 TCP:"$dstip":"$dstport" STDIO < "$nsin" > "$ns1out"
+ timeout "$SOCAT_TIMEOUT" ip netns exec "$nsa" socat -4 TCP:"$dstip":"$dstport" STDIO < "$nsin" > "$ns1out"
wait $lpid
--
2.45.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] selftests: netfilter: nft_flowtable.sh: bump socat timeout to 1m
2024-05-11 6:48 [PATCH net-next] selftests: netfilter: nft_flowtable.sh: bump socat timeout to 1m Florian Westphal
@ 2024-05-13 21:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-05-13 21:50 UTC (permalink / raw)
To: Florian Westphal; +Cc: netdev, kuba, netfilter-devel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sat, 11 May 2024 08:48:03 +0200 you wrote:
> Now that this test runs in netdev CI it looks like 10s isn't enough
> for debug kernels:
> selftests: net/netfilter: nft_flowtable.sh
> 2024/05/10 20:33:08 socat[12204] E write(7, 0x563feb16a000, 8192): Broken pipe
> FAIL: file mismatch for ns1 -> ns2
> -rw------- 1 root root 37345280 May 10 20:32 /tmp/tmp.Am0yEHhNqI
> ...
>
> [...]
Here is the summary with links:
- [net-next] selftests: netfilter: nft_flowtable.sh: bump socat timeout to 1m
https://git.kernel.org/netdev/net-next/c/5fcc17dfe05e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-13 21:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-11 6:48 [PATCH net-next] selftests: netfilter: nft_flowtable.sh: bump socat timeout to 1m Florian Westphal
2024-05-13 21:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).