[gnome-settings-daemon/wip/carlosg/fix-tests-master: 1/2] xsettings: Start/stop logind mock on tests



commit f4ee4cbc54cc859eef90e7afebb9acc5f8974001
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]