diff options
author | Florian Westphal <fw@strlen.de> | 2018-06-25 16:49:05 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-06-25 16:49:08 +0200 |
commit | e06387383f0c8d49e9e2a736273b4932ff68a5ae (patch) | |
tree | 141d224d44979a5de8456c05fb7c52923bbc96f2 /iptables/tests | |
parent | d26c538b9a549082c1696221282c007692261a35 (diff) |
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 <fw@strlen.de>
Diffstat (limited to 'iptables/tests')
-rwxr-xr-x | iptables/tests/shell/testcases/chain/0002duplicate_0 | 4 |
1 files changed, 1 insertions, 3 deletions
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 |