ci: set up XDG_RUNTIME_DIR to be under /tmp which is tmpfs

Set up XDG_RUNTIME_DIR path to be under /tmp.

This might improve speed as /tmp is under tmpfs while the older path
might have been under NFS.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35126>
This commit is contained in:
Antonio Ospite 2025-05-08 17:10:18 +02:00 committed by Marge Bot
parent c5500cd12f
commit b16ed16d75

View file

@ -122,7 +122,7 @@ export -f _uncollapsed_section_switch
export -f _error_msg export -f _error_msg
# Freedesktop requirement (needed for Wayland) # 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 --tmpdir -d xdg-runtime-XXXXXX)"
if [ -z "${RESULTS_DIR:-}" ]; then if [ -z "${RESULTS_DIR:-}" ]; then
export RESULTS_DIR="${PWD%/}/results" export RESULTS_DIR="${PWD%/}/results"