INNER CODE UNIT · Elixir
TEST_CMD
supabase/realtime · .github/scripts/run_tests_with_retry.sh:22
TEST_CMD=(mix test --partitions 4 --color)
fi
# mix's exit code is data we need to branch on, not an error - suspend
# errexit so a nonzero PIPESTATUS doesn't abort the script before we read it.
set +e
"${TEST_CMD[@]}" 2>&1 | tee "$ATTEMPT1_LOG"
ATTEMPT1_EXIT="${PIPESTATUS[0]}"
set -e
if [ "$ATTEMPT1_EXIT" -eq 0 ]; then
exit 0
fi
if [ "$ATTEMPT1_EXIT" -ne 2 ]; then
# ::error::/::warning:: are GitHub Actions workflow commands - the runner
# turns them into annotations on the job instead of plain log lines.
echo "::error::Test run failed with exit code $ATTEMPT1_EXIT (not a test failure) - no retry"