ci: do not fail vkd3d-proton job when the expectations match
When the list of expected failures match, the job shouldn't fail. This also adjusts the first error check to catch segfaults. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25025>
This commit is contained in:
parent
4a8afc9072
commit
6e0ad50102
1 changed files with 6 additions and 3 deletions
|
|
@ -55,7 +55,11 @@ quiet printf "%s\n" "Running vkd3d-proton testsuite..."
|
||||||
set +e
|
set +e
|
||||||
if ! /vkd3d-proton-tests/x64/bin/d3d12 > "$RESULTS/vkd3d-proton.log";
|
if ! /vkd3d-proton-tests/x64/bin/d3d12 > "$RESULTS/vkd3d-proton.log";
|
||||||
then
|
then
|
||||||
error printf "%s\n" "Failed, see vkd3d-proton.log!"
|
# Check if the executable finished (ie. no segfault).
|
||||||
|
if ! grep "tests executed" "$RESULTS/vkd3d-proton.log" > /dev/null; then
|
||||||
|
error printf "%s\n" "Failed, see vkd3d-proton.log!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Collect all the failures
|
# Collect all the failures
|
||||||
VKD3D_PROTON_RESULTS="${VKD3D_PROTON_RESULTS:-vkd3d-proton-results}"
|
VKD3D_PROTON_RESULTS="${VKD3D_PROTON_RESULTS:-vkd3d-proton-results}"
|
||||||
|
|
@ -75,9 +79,8 @@ then
|
||||||
if ! diff -q ".gitlab-ci/vkd3d-proton/$VKD3D_PROTON_RESULTS.txt.baseline" "$RESULTSFILE"; then
|
if ! diff -q ".gitlab-ci/vkd3d-proton/$VKD3D_PROTON_RESULTS.txt.baseline" "$RESULTSFILE"; then
|
||||||
error printf "%s\n" "Changes found, see vkd3d-proton.log!"
|
error printf "%s\n" "Changes found, see vkd3d-proton.log!"
|
||||||
quiet diff --color=always -u ".gitlab-ci/vkd3d-proton/$VKD3D_PROTON_RESULTS.txt.baseline" "$RESULTSFILE"
|
quiet diff --color=always -u ".gitlab-ci/vkd3d-proton/$VKD3D_PROTON_RESULTS.txt.baseline" "$RESULTSFILE"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s\n" "vkd3d-proton execution: SUCCESS"
|
printf "%s\n" "vkd3d-proton execution: SUCCESS"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue