ci: Make setup-test-env safe for set -u
Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31281>
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user