From: Florian Westphal Date: Mon, 25 Jun 2018 14:49:05 +0000 (+0200) Subject: tests: make duplicate test work X-Git-Tag: v1.8.0~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e06387383f0c8d49e9e2a736273b4932ff68a5ae;p=thirdparty%2Fiptables.git 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 --- 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