/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
. ${VM_TEMP_DIR}/crosvm-env.sh
. ${VM_TEMP_DIR}/setup-test-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}"
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)"
+
set -E
trap 'trap_err $?' ERR
llvmpipe:
variables:
DEQP_SUITE: llvmpipe
- XDG_RUNTIME_DIR: /run/user
XVFB_SCRIPT: "install/deqp-runner.sh"
DEQP_FRACTION: 4
extends: .llvmpipe-deqp-test
script: |
. "$SCRIPTS_DIR"/setup-test-env.sh
section_start weston "weston: prepare"
- mkdir -p $XDG_RUNTIME_DIR
LD_LIBRARY_PATH=`pwd`/install weston -Bheadless-backend.so -Swayland-0 &
section_end weston
LD_LIBRARY_PATH=`pwd`/install WAYLAND_DISPLAY=wayland-0 xvfb-run --server-args='-noreset' bash -c ". $SCRIPTS_DIR/setup-test-env.sh && ${XVFB_SCRIPT}"