ci/vkd3d: print a real error message when failing to get the list of failing tests

Instead of just `++ trap_err 1`.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29749>
This commit is contained in:
Eric Engestrom
2024-06-14 14:41:24 +02:00
committed by Marge Bot
parent e266b6287e
commit 6f6a13f5fc

View File

@@ -62,7 +62,10 @@ then
# Collect all the failures # Collect all the failures
RESULTSFILE="$RESULTS/$VKD3D_PROTON_RESULTS.txt" RESULTSFILE="$RESULTS/$VKD3D_PROTON_RESULTS.txt"
mkdir -p .gitlab-ci/vkd3d-proton mkdir -p .gitlab-ci/vkd3d-proton
grep "Test failed" "$RESULTS"/vkd3d-proton.log > "$RESULTSFILE" if ! grep "Test failed" "$RESULTS"/vkd3d-proton.log > "$RESULTSFILE"; then
error "Failed to get the list of failing tests, see vkd3d-proton.log!"
exit 1
fi
# Gather the list expected failures # Gather the list expected failures
if [ -f "$INSTALL/$VKD3D_PROTON_RESULTS-vkd3d.txt" ]; then if [ -f "$INSTALL/$VKD3D_PROTON_RESULTS-vkd3d.txt" ]; then