From e06387383f0c8d49e9e2a736273b4932ff68a5ae Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 25 Jun 2018 16:49:05 +0200 Subject: tests: make duplicate test work set -e causes 2nd command (which is expected to fail) to terminate the script as well. So, don't set -e and let the error check invert the return value to 0. Signed-off-by: Florian Westphal --- iptables/tests/shell/testcases/chain/0002duplicate_0 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'iptables/tests/shell/testcases') diff --git a/iptables/tests/shell/testcases/chain/0002duplicate_0 b/iptables/tests/shell/testcases/chain/0002duplicate_0 index 6d42cecf..025114ea 100755 --- a/iptables/tests/shell/testcases/chain/0002duplicate_0 +++ b/iptables/tests/shell/testcases/chain/0002duplicate_0 @@ -1,8 +1,6 @@ #!/bin/bash -set -e - -$IPTABLES -t filter -N c1 +$IPTABLES -t filter -N c1 || exit 1 $IPTABLES -t filter -N c1 if [ $? -eq 0 ]; then -- cgit v1.2.3