Stop running tests once the environment is contaminated

This commit is contained in:
Marc André Tanner 2014-06-24 10:48:11 +02:00
parent 466103cdd4
commit c81c3c3214
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ expected_abduco_output() {
} }
check_environment() { check_environment() {
[ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && return 1; [ "`$ABDUCO | wc -l`" -gt 1 ] && echo Abduco session exists && exit 1;
pgrep abduco && echo Abduco process exists && return 1; pgrep abduco && echo Abduco process exists && exit 1;
return 0; return 0;
} }