ci/init-stage2: always set XDG_RUNTIME_DIR
authorMartin Roukala (né Peres) <martin.roukala@mupuf.org>
Tue, 14 Mar 2023 08:48:41 +0000 (10:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Mar 2023 17:22:07 +0000 (17:22 +0000)
This seems to be needed now that we compile mesa with wayland support.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21872>

.gitlab-ci/common/init-stage2.sh

index d8238d5..0b27b81 100755 (executable)
@@ -125,6 +125,9 @@ fi
 /capture-devcoredump.sh &
 BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
 
+export XDG_RUNTIME_DIR=/run/user
+mkdir -p $XDG_RUNTIME_DIR
+
 # If we want Xorg to be running for the test, then we start it up before the
 # HWCI_TEST_SCRIPT because we need to use xinit to start X (otherwise
 # without using -displayfd you can race with Xorg's startup), but xinit will eat
@@ -152,8 +155,6 @@ if [ -n "$HWCI_START_WESTON" ]; then
     echo "Please consider dropping HWCI_START_XORG and instead using Weston XWayland for testing."
     WESTON_X11_SOCK="/tmp/.X11-unix/X1"
   fi
-  export XDG_RUNTIME_DIR=/run/user
-  mkdir -p $XDG_RUNTIME_DIR
   export WAYLAND_DISPLAY=wayland-0
 
   # Display server is Weston Xwayland when HWCI_START_XORG is not set or Xorg when it's