[at-spi2-core: 7/11] session_manager(): Start each session mock in a Running state
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 7/11] session_manager(): Start each session mock in a Running state
- Date: Thu, 14 Jul 2022 02:29:07 +0000 (UTC)
commit b53bfa325bf8a9c162306d01a3d3a49a60c334c1
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jul 13 19:37:06 2022 -0500
session_manager(): Start each session mock in a Running state
Otherwise, registryd will keep waiting to register itself against the session!
ci/run-registryd-tests.sh | 5 -----
tests/registryd/conftest.py | 2 ++
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/ci/run-registryd-tests.sh b/ci/run-registryd-tests.sh
index 62eb1118..d5aa5f39 100755
--- a/ci/run-registryd-tests.sh
+++ b/ci/run-registryd-tests.sh
@@ -12,11 +12,6 @@ gdbus call --session \
--object-path /org/gnome/SessionManager \
--method org.freedesktop.DBus.Mock.AddTemplate 'tests/dbusmock/mock-gnome-session.py' '{}'
-gdbus call --session \
- --dest org.gnome.SessionManager \
- --object-path /org/gnome/SessionManager \
- --method org.freedesktop.DBus.Mock.SetSessionRunning true
-
mkdir -p _build/tests/registryd
cd tests/registryd
diff --git a/tests/registryd/conftest.py b/tests/registryd/conftest.py
index 7f0c6982..d3b20145 100644
--- a/tests/registryd/conftest.py
+++ b/tests/registryd/conftest.py
@@ -54,6 +54,8 @@ def session_manager():
bus = dbus.SessionBus()
mock_session = bus.get_object('org.gnome.SessionManager', '/org/gnome/SessionManager')
+ mock_session.SetSessionRunning(True, dbus_interface='org.freedesktop.DBus.Mock')
+
# return a dummy object as a fixture
yield object()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]