From 104f21c27b0c8b2dce1ba5e6a3b3c05e77067e1f Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 18 Apr 2025 14:22:38 +0200 Subject: [PATCH] ci/vkd3d: treat reading undefined variables as an error This would've prevented the bug in the previous commit. Part-of: --- .gitlab-ci/vkd3d-runner.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/vkd3d-runner.sh b/.gitlab-ci/vkd3d-runner.sh index f4908547cbe..d35dfda19e7 100755 --- a/.gitlab-ci/vkd3d-runner.sh +++ b/.gitlab-ci/vkd3d-runner.sh @@ -3,7 +3,7 @@ . "${SCRIPTS_DIR}/setup-test-env.sh" -set -e +set -eu comma_separated() { local IFS=, @@ -21,7 +21,7 @@ INSTALL=$(realpath -s "$PWD"/install) # Modifiying here directly LD_LIBRARY_PATH may cause problems when # using a command wrapper. Hence, we will just set it when running the # command. -export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$INSTALL/lib/:/vkd3d-proton-tests/lib/" +export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}:$INSTALL/lib/:/vkd3d-proton-tests/lib/" # Set the Vulkan driver to use.