From c81c3c3214cac3c930cf43c427c0ede79173066d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 24 Jun 2014 10:48:11 +0200 Subject: [PATCH] Stop running tests once the environment is contaminated --- testsuite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite.sh b/testsuite.sh index 5800d12..1702fcd 100755 --- a/testsuite.sh +++ b/testsuite.sh @@ -31,8 +31,8 @@ expected_abduco_output() { } check_environment() { - [ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && return 1; - pgrep abduco && echo Abduco process exists && return 1; + [ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && exit 1; + pgrep abduco && echo Abduco process exists && exit 1; return 0; }