From: Simon Ruderich Date: Fri, 12 Jul 2013 14:06:48 +0000 (+0200) Subject: tests/common.sh: Abort on errors. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=1d67ac2be1b0dc348ef541396c00901e60fdda14;p=tlsproxy%2Ftlsproxy.git tests/common.sh: Abort on errors. --- diff --git a/tests/common.sh b/tests/common.sh index 87781f2..52b0f74 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -16,6 +16,9 @@ # along with this program. If not, see . +set -e + + cleanup() { rm -f \ certificate-localhost-proxy.pem certificate-localhost-server.pem \ @@ -47,5 +50,5 @@ test_invalid_certificate() { grep 'certificate invalid' tmp >/dev/null || abort } test_no_invalid_certificate() { - grep 'certificate invalid' tmp >/dev/null && abort + grep 'certificate invalid' tmp >/dev/null && abort || true }