From 0f8fd5da7a20f9fcf1655373ca68b889589d1e38 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 18 Apr 2025 15:38:37 +0200 Subject: [PATCH] ci/vkd3d: fix test failure list when no test failed This becomes important once the bugfix in the next commit is applied. Part-of: --- .gitlab-ci/vkd3d-runner.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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