diff mbox series

[nftables] tests: shell: packetpath/flowtables: open all temporary files in /tmp

Message ID 20240324145908.2643098-2-jeremy@azazel.net
State Accepted
Headers show
Series [nftables] tests: shell: packetpath/flowtables: open all temporary files in /tmp | expand

Commit Message

Jeremy Sowden March 24, 2024, 2:59 p.m. UTC
The test used to do I/O over a named pipe in $PWD, until Phil changed it
to create the pipe in /tmp.  However, he missed one `socat` command.
Update that too.

Fixes: 3a9f29e21726 ("tests: shell: packetpath/flowtables: Avoid spurious EPERM")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
 tests/shell/testcases/packetpath/flowtables | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pablo Neira Ayuso April 1, 2024, 3:02 p.m. UTC | #1
On Sun, Mar 24, 2024 at 02:59:08PM +0000, Jeremy Sowden wrote:
> The test used to do I/O over a named pipe in $PWD, until Phil changed it
> to create the pipe in /tmp.  However, he missed one `socat` command.
> Update that too.

Applied, thanks
diff mbox series

Patch

diff --git a/tests/shell/testcases/packetpath/flowtables b/tests/shell/testcases/packetpath/flowtables
index 18a57a9b2b72..ec7dfeb75c00 100755
--- a/tests/shell/testcases/packetpath/flowtables
+++ b/tests/shell/testcases/packetpath/flowtables
@@ -77,7 +77,7 @@  ip netns exec $R sysctl -w net.netfilter.nf_conntrack_tcp_timeout_established=86
 }
 
 # A trick to control the timing to send a packet
-ip netns exec $S socat TCP6-LISTEN:10001 GOPEN:pipefile,ignoreeof &
+ip netns exec $S socat TCP6-LISTEN:10001 GOPEN:/tmp/pipefile-$rnd,ignoreeof &
 sleep 1
 ip netns exec $C socat -b 2048 PIPE:/tmp/pipefile-$rnd 'TCP:[2001:db8:ffff:22::1]:10001' &
 sleep 1