[gnome-settings-daemon/wip/carlosg/fix-tests-master: 3/4] xsettings: Start/stop logind mock on tests
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/carlosg/fix-tests-master: 3/4] xsettings: Start/stop logind mock on tests
- Date: Mon, 9 Sep 2019 22:07:31 +0000 (UTC)
commit c88079418278823f089f06dc572b622c3d8218e6
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Sep 9 14:34:54 2019 +0200
xsettings: Start/stop logind mock on tests
This is an indirect dependency as we spawn gnome-session in them.
Closes: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/445
plugins/xsettings/test.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/plugins/xsettings/test.py b/plugins/xsettings/test.py
index 274783f4..79ced93b 100755
--- a/plugins/xsettings/test.py
+++ b/plugins/xsettings/test.py
@@ -30,6 +30,8 @@ class XsettingsPluginTest(gsdtestcase.GSDTestCase):
'''Test the xsettings plugin'''
def setUp(self):
+ self.start_logind()
+
self.daemon_death_expected = False
self.session_log_write = open(os.path.join(self.workdir, 'gnome-session.log'), 'wb')
self.session = subprocess.Popen(['gnome-session', '-f',
@@ -117,6 +119,7 @@ class XsettingsPluginTest(gsdtestcase.GSDTestCase):
self.stop_session()
self.stop_mutter()
+ self.stop_logind()
# reset all changed gsettings, so that tests are independent from each
# other
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]