Commit c8807941 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Carlos Garnacho

xsettings: Start/stop logind mock on tests

This is an indirect dependency as we spawn gnome-session in them.

Closes: #445
parent e27aaa9a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment