From ffcf95e18c48b6a86acffb1630d65b07293581b5 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 6 Nov 2024 15:55:29 +0100 Subject: 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 --- iptables/tests/shell/testcases/iptables/0010-wait_0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=$! -- cgit v1.2.3