From 22cc82d21d4eae15d52d062832ce7631223f24b2 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 1 Jun 2016 13:45:48 -0700 Subject: [PATCH] tests: dual-proto: Fail gracefully on firewall * Firewall was already configured, don't exit the unit test. --- tests/dual-proto.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dual-proto.sh b/tests/dual-proto.sh index 9c862e4..9b0ef66 100755 --- a/tests/dual-proto.sh +++ b/tests/dual-proto.sh @@ -36,8 +36,8 @@ docker run --volumes-from $OVPN_DATA --rm $IMG ovpn_listclients | grep $CLIENT_U # # Fire up the server # -sudo iptables -N DOCKER -sudo iptables -I FORWARD -j DOCKER +sudo iptables -N DOCKER || echo 'Firewall already configured' +sudo iptables -I FORWARD -j DOCKER || echo 'Forward already configured' # run in shell bg to get logs docker run --name "ovpn-test-udp" --volumes-from $OVPN_DATA --rm -p 1194:1194/udp --privileged $IMG &