From: Phil Sutter Date: Wed, 6 Nov 2024 14:55:29 +0000 (+0100) Subject: tests: shell: iptables/0010-wait_0 is unreliable X-Git-Tag: v1.8.11~6 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ffcf95e18c48b6a86acffb1630d65b07293581b5;p=thirdparty%2Fiptables.git tests: shell: iptables/0010-wait_0 is unreliable 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 --- diff --git a/iptables/tests/shell/testcases/iptables/0010-wait_0 b/iptables/tests/shell/testcases/iptables/0010-wait_0 index 4481f966..37a7a58f 100755 --- a/iptables/tests/shell/testcases/iptables/0010-wait_0 +++ b/iptables/tests/shell/testcases/iptables/0010-wait_0 @@ -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=$!