Don't parallelize tests

On CI this causes them to be flaky since sometimes they output
`error (ignored): error: SQLite database ... is busy`.
This commit is contained in:
Alex David 2025-08-15 08:12:21 -07:00
commit 1f7587326e

View file

@ -51,7 +51,6 @@
]}) ]})
TEST_FAIL_LOG=$(mktemp) TEST_FAIL_LOG=$(mktemp)
trap 'rm $TEST_FAIL_LOG' EXIT trap 'rm $TEST_FAIL_LOG' EXIT
(
for TEST_NAME in "''${TESTS[@]}"; do for TEST_NAME in "''${TESTS[@]}"; do
( (
if TEST_OUTPUT=$(nix build -L .#checks.x86_64-linux."$TEST_NAME" 2>&1); then if TEST_OUTPUT=$(nix build -L .#checks.x86_64-linux."$TEST_NAME" 2>&1); then
@ -60,10 +59,8 @@
printf ' %s [${red}✖${reset}]\n' "$TEST_NAME" printf ' %s [${red}✖${reset}]\n' "$TEST_NAME"
printf '${red}✖ %s${reset}\n%s\n\n\n' "$TEST_NAME" "$TEST_OUTPUT" >> "$TEST_FAIL_LOG" printf '${red}✖ %s${reset}\n%s\n\n\n' "$TEST_NAME" "$TEST_OUTPUT" >> "$TEST_FAIL_LOG"
fi fi
) & )
done done
) | sort
wait
FAILURES=$(cat "$TEST_FAIL_LOG") FAILURES=$(cat "$TEST_FAIL_LOG")
if [ "$FAILURES" != "" ]; then if [ "$FAILURES" != "" ]; then
printf '\n${red}Failing tests:${reset}\n\n%s' "$FAILURES" printf '\n${red}Failing tests:${reset}\n\n%s' "$FAILURES"