Skip to content

Commit

Permalink
tests: Fix output interleaving with -j1
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Nov 7, 2023
1 parent 31aadf6 commit ce90dc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce90dc9

Please sign in to comment.