summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/run.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/run.sh b/tests/run.sh
index f93cb4b..8f0a8fc 100644
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -124,17 +124,17 @@ run_tests() {
set +e
for TEST in "${TEST_CASES[@]}"; do
+ if ((BG >= JOBS)); then
+ wait_test
+ fi
+
printf "$TEST_FMT" "$TEST"
mkdir -p "$TMP/$TEST"
OUT="$TMP/$TEST.out"
- if ((BG >= JOBS)); then
- wait_test
- fi
- ((++BG))
-
bg_test "$TESTS/$TEST.sh" &
+ ((++BG))
done
while ((BG > 0)); do