From: fennecdjay Date: Fri, 23 Oct 2020 09:30:04 +0000 (+0200) Subject: :wrench: make test stoppable again X-Git-Tag: nightly~1225 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c952e416e6f546b36a0981db9074e83dabf3236f;p=gwion.git :wrench: make test stoppable again --- diff --git a/scripts/test.sh b/scripts/test.sh index fbd9e82d..f02f8bad 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -23,6 +23,8 @@ : "${separator:=/}" +[ "$async" -gt 0 ] && set -m + assert_returns() { [ "$1" -eq 0 ] && return 0 [ "$1" -eq 139 ] && echo "segfault" > "$2" @@ -187,7 +189,6 @@ test_dir() { n=$2 l=$n offset=$n - [ "$async" -gt 0 ] && set -m found=0 grep '\.gw' <<< "$(ls "$1")" &> /dev/null && found=1 if [ "$found" -eq 1 ]