[gtk/testsuites-reorg: 1/2] ci: Run the tests under their own session bus



commit 18cfa2c0e7ce18a70088c2636df515ce527a9ebb
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Feb 13 17:00:42 2020 +0000

    ci: Run the tests under their own session bus
    
    Don't try to connect to the main session bus, especially on environments
    where that session bus might not even exist.

 .gitlab-ci/run-tests.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh
index 5638fa6593..ca5f0d2036 100755
--- a/.gitlab-ci/run-tests.sh
+++ b/.gitlab-ci/run-tests.sh
@@ -8,10 +8,11 @@ builddir=$1
 
 export GDK_BACKEND=x11
 xvfb-run -a -s "-screen 0 1024x768x24" \
-        meson test -C ${builddir} \
-                --print-errorlogs \
-                --suite=gtk \
-                --no-suite=gtk:a11y
+        dbus-run-session -- \
+                meson test -C ${builddir} \
+                        --print-errorlogs \
+                        --suite=gtk \
+                        --no-suite=gtk:a11y
 
 # Store the exit code for the CI run, but always
 # generate the reports


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]