ci: Run whole run-tests.sh in a D-Bus session

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1698>
This commit is contained in:
Jonas Ådahl 2021-02-13 18:46:13 +01:00 committed by Marge Bot
parent 634c948fc6
commit 2be09ce045
2 changed files with 4 additions and 6 deletions

View File

@ -254,7 +254,8 @@ build-without-native-backend-and-wayland@x86_64:
MALLOC_CHECK_: "3" MALLOC_CHECK_: "3"
NO_AT_BRIDGE: "1" NO_AT_BRIDGE: "1"
script: 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: artifacts:
expire_in: 1 day expire_in: 1 day
reports: reports:

View File

@ -3,14 +3,11 @@
set +e set +e
dconf update dconf update
mkdir -m 700 $XDG_RUNTIME_DIR
glib-compile-schemas $GSETTINGS_SCHEMA_DIR glib-compile-schemas $GSETTINGS_SCHEMA_DIR
export MUTTER_DEBUG_DUMMY_MODE_SPECS="800x600@10.0" export MUTTER_DEBUG_DUMMY_MODE_SPECS="800x600@10.0"
dbus-run-session -- \ xvfb-run -s '+iglx -noreset' \
xvfb-run -s '+iglx -noreset' \
meson test -C build --no-rebuild -t 10 --wrap catchsegv meson test -C build --no-rebuild -t 10 --wrap catchsegv
exit_code=$? exit_code=$?