From 2be09ce0452ecbca65d040e26b6fa002b3c6acce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 13 Feb 2021 18:46:13 +0100 Subject: [PATCH] ci: Run whole run-tests.sh in a D-Bus session Part-of: --- .gitlab-ci.yml | 3 ++- .gitlab-ci/run-tests.sh | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c57faef9d..32612bff6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -254,7 +254,8 @@ build-without-native-backend-and-wayland@x86_64: MALLOC_CHECK_: "3" NO_AT_BRIDGE: "1" script: - - bash -x ./.gitlab-ci/run-tests.sh + - mkdir -m 700 $XDG_RUNTIME_DIR + - dbus-run-session -- bash -x ./.gitlab-ci/run-tests.sh artifacts: expire_in: 1 day reports: diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh index 63726d117..76b67934f 100755 --- a/.gitlab-ci/run-tests.sh +++ b/.gitlab-ci/run-tests.sh @@ -3,15 +3,12 @@ set +e dconf update - -mkdir -m 700 $XDG_RUNTIME_DIR glib-compile-schemas $GSETTINGS_SCHEMA_DIR export MUTTER_DEBUG_DUMMY_MODE_SPECS="800x600@10.0" -dbus-run-session -- \ - xvfb-run -s '+iglx -noreset' \ - meson test -C build --no-rebuild -t 10 --wrap catchsegv +xvfb-run -s '+iglx -noreset' \ + meson test -C build --no-rebuild -t 10 --wrap catchsegv exit_code=$?