From d8582afa93cc22e70bbfb75dc24e0544972032e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 14 Sep 2020 12:10:22 +0200 Subject: [PATCH] :wrench: Fix OS tests? --- scripts/test.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 8aa5798b..7df033bb 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -51,6 +51,7 @@ assert_exclude() { } read_test() { + [ -f "$1" ] && return # needed for macOS, modulo does not seem to work while read -r line do if [ "$line" = "#*" ] @@ -214,12 +215,12 @@ test_dir() { l=$((l+1)) done [ "$async" -ne 0 ] && { - wait - local rest=$(( $((n-base-1)) %async)) - for i in $(seq $((n-rest)) $((n-1))) - do read_test "${GWION_TEST_DIR}${separator}${GWION_TEST_PREFIX}$(printf "%04i" "$i").log" - done -} + wait + local rest=$(( $((n-base-1)) %async)) + for i in $(seq $((n-rest)) $((n-1))) + do read_test "${GWION_TEST_DIR}${separator}${GWION_TEST_PREFIX}$(printf "%04i" "$i").log" + done + } fi -- 2.43.0