[gnome-software: 15/21] ci: Run D-Bus session and system buses




commit a51f738756881180a61ed0d7786e3fdf2dbcb449
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Mar 30 16:52:04 2022 +0100

    ci: Run D-Bus session and system buses
    
    They are explicitly needed in all the tests now, as the plugin loader
    connects to the bus earlier.
    
    gnome-software already needed both buses (the session bus for
    `GApplication`, and the system bus for PackageKit and flatpak), but the
    changes in the past few commits mean that those connections are made
    earlier in the process, and hence don’t get avoided in some tests.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1694

 .gitlab-ci/run-tests.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh
index cb550d329..38e7cb1c7 100755
--- a/.gitlab-ci/run-tests.sh
+++ b/.gitlab-ci/run-tests.sh
@@ -23,13 +23,14 @@ fi
 sudo mkdir -p /run/dbus
 sudo mkdir -p /var
 sudo ln -s /var/run /run
-#sudo dbus-daemon --system --fork
+sudo dbus-daemon --system --fork
 #sudo /usr/lib/polkit-1/polkitd --no-debug &
 #sudo /usr/libexec/fwupd/fwupd --verbose &
 
 # FIXME: Running the flatpak tests as root means the system helper doesn’t
 # need to be used, which makes them run a lot faster.
 sudo \
+dbus-run-session -- \
 meson test \
         -C _build \
         --timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER} \


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