ci/vkd3d: fix test failure list when no test failed

This becomes important once the bugfix in the next commit is applied.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34639>
This commit is contained in:
Eric Engestrom 2025-04-18 15:38:37 +02:00 committed by Marge Bot
parent d21e300f33
commit 0f8fd5da7a

View file

@ -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