From 4ae2d97c36dc10b4d96440a00674a21e743533d7 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 30 Aug 2024 15:41:30 +0100 Subject: [PATCH] ci: Make setup-test-env safe for set -u Signed-off-by: Daniel Stone Part-of: --- .gitlab-ci/setup-test-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/setup-test-env.sh b/.gitlab-ci/setup-test-env.sh index 02c7f5ab9b1..c2b7f045130 100644 --- a/.gitlab-ci/setup-test-env.sh +++ b/.gitlab-ci/setup-test-env.sh @@ -106,7 +106,7 @@ export -f section_switch export -f uncollapsed_section_switch # Freedesktop requirement (needed for Wayland) -[ -n "${XDG_RUNTIME_DIR}" ] || export XDG_RUNTIME_DIR="$(mktemp -p "$PWD" -d xdg-runtime-XXXXXX)" +[ -n "${XDG_RUNTIME_DIR:-}" ] || export XDG_RUNTIME_DIR="$(mktemp -p "$PWD" -d xdg-runtime-XXXXXX)" if [ -z "${RESULTS_DIR:-}" ]; then export RESULTS_DIR="$(pwd)/results"