ci/vkd3d: fix version sanity check

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29201>
This commit is contained in:
Eric Engestrom 2024-05-14 19:28:56 +02:00 committed by Marge Bot
parent 300afd3c86
commit 3127b52ef7
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$INSTALL/lib/:/vkd3d-proton-tests/x64/"
# 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=$(sed 's/\./\\./g' "$INSTALL/VERSION")
MESA_VERSION=$(cat "$INSTALL/VERSION")
# Set the Vulkan driver to use.
ARCH=$(uname -m)
@ -39,7 +39,7 @@ quiet() {
}
set +e
if ! vulkaninfo | tee /tmp/version.txt | grep "\"Mesa $MESA_VERSION\(\s\|$\)\"";
if ! vulkaninfo | tee /tmp/version.txt | grep -F "Mesa $MESA_VERSION";
then
printf "%s\n" "Found $(cat /tmp/version.txt), expected $MESA_VERSION"
fi