]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: shell: iptables/0010-wait_0 is unreliable
authorPhil Sutter <phil@nwl.cc>
Wed, 6 Nov 2024 14:55:29 +0000 (15:55 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 6 Nov 2024 15:09:52 +0000 (16:09 +0100)
Sometimes the test would fail, especially after removing
/run/xtables.lock file. Looks like the supposedly blocking
iptables-restore coproc sometimes takes a moment to set things up.

Fixes: 63ab5b8906f69 ("iptables-legacy: Fix for mandatory lock waiting")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/testcases/iptables/0010-wait_0

index 4481f966ce4358fbd57b4cafbe6c7b20e2db899b..37a7a58fc5dca3ff5fee3c1cf2a67d2f89e65fd3 100755 (executable)
@@ -11,7 +11,7 @@ esac
 
 coproc RESTORE { $XT_MULTI iptables-restore; }
 echo "*filter" >&${RESTORE[1]}
-
+sleep 0.5
 
 $XT_MULTI iptables -A FORWARD -j ACCEPT &
 ipt_pid=$!