ci: Setup XDG_RUNTIME_DIR in crosvm-init
authorCorentin Noël <corentin.noel@collabora.com>
Tue, 14 Mar 2023 14:55:13 +0000 (15:55 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Mar 2023 23:59:37 +0000 (23:59 +0000)
This environment variable has to be set to use the wayland platform.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21900>

.gitlab-ci/crosvm-init.sh

index 490960b..57366bf 100755 (executable)
@@ -14,6 +14,9 @@ mount -t tmpfs tmpfs /tmp
 
 . ${VM_TEMP_DIR}/crosvm-env.sh
 
+# Required by the wayland platform
+export XDG_RUNTIME_DIR=$(mktemp -d)
+
 # .gitlab-ci.yml script variable is using relative paths to install directory,
 # so change to that dir before running `crosvm-script`
 cd "${CI_PROJECT_DIR}"