From 1d67ac2be1b0dc348ef541396c00901e60fdda14 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 12 Jul 2013 16:06:48 +0200 Subject: [PATCH] tests/common.sh: Abort on errors. --- tests/common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- 2.43.2