From: Jérémie Astor Date: Mon, 14 Sep 2020 10:10:22 +0000 (+0200) Subject: :wrench: Fix OS tests? X-Git-Tag: nightly~1319 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d8582afa93cc22e70bbfb75dc24e0544972032e9;p=gwion.git :wrench: Fix OS tests? --- 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