diff --git a/.gitlab-ci/vkd3d-runner.sh b/.gitlab-ci/vkd3d-runner.sh index 984f3417be0..0583a542b61 100755 --- a/.gitlab-ci/vkd3d-runner.sh +++ b/.gitlab-ci/vkd3d-runner.sh @@ -109,7 +109,12 @@ if [ ${#flakes_seen[@]} -gt 0 ]; then fi # Collect all the failures -mapfile -t fails < <(grep -oE "^FAILED .+$" "$LOGFILE" | cut -d' ' -f2 | sort) +fails_lines=$(grep -oE "^FAILED .+$" "$LOGFILE" | cut -d' ' -f2 | sort) +if [ -n "$fails_lines" ]; then + mapfile -t fails < <(echo "$fails_lines") +else + fails=() +fi # Save test output for failed tests (before excluding flakes) for failed_test in "${fails[@]}"; do