ci/vkd3d: add support for *-skips.txt list files
Allows annotating the skips to document them, and avoids running the entire CI for that driver when changing the skips for one device. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30413>
This commit is contained in:
committed by
Marge Bot
parent
ab1e99de62
commit
f54cb2476f
@@ -2,6 +2,11 @@
|
||||
|
||||
set -ex
|
||||
|
||||
comma_separated() {
|
||||
local IFS=,
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
if [[ -z "$VK_DRIVER" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
@@ -29,6 +34,12 @@ export WINEDEBUG="-all"
|
||||
export WINEPREFIX="/vkd3d-proton-wine64"
|
||||
export WINEESYNC=1
|
||||
|
||||
if [ -f "$INSTALL/$GPU_VERSION-vkd3d-skips.txt" ]; then
|
||||
mapfile -t skips < <(grep -vE '^#|^$' "$INSTALL/$GPU_VERSION-vkd3d-skips.txt")
|
||||
VKD3D_TEST_EXCLUDE=$(comma_separated "${skips[@]}")
|
||||
export VKD3D_TEST_EXCLUDE
|
||||
fi
|
||||
|
||||
# Sanity check to ensure that our environment is sufficient to make our tests
|
||||
# run against the Mesa built by CI, rather than any installed distro version.
|
||||
MESA_VERSION=$(cat "$INSTALL/VERSION")
|
||||
|
||||
Reference in New Issue
Block a user