From c952e416e6f546b36a0981db9074e83dabf3236f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 23 Oct 2020 11:30:04 +0200 Subject: [PATCH] :wrench: make test stoppable again --- scripts/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ] -- 2.43.0