diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2019-09-09 14:34:54 +0200 |
---|---|---|
committer | Carlos Garnacho <mrgarnacho@gmail.com> | 2019-09-09 22:07:17 +0000 |
commit | c88079418278823f089f06dc572b622c3d8218e6 (patch) | |
tree | ab09c28ac4ed47f3bad98e12b5a5266eb5fc9806 | |
parent | e27aaa9a736f649882612ce665c64fdd0a1ecc99 (diff) | |
download | gnome-settings-daemon-c88079418278823f089f06dc572b622c3d8218e6.tar.gz |
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
-rwxr-xr-x | plugins/xsettings/test.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |