[gnome-settings-daemon] power tests: Disable screen saver locking
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power tests: Disable screen saver locking
- Date: Fri, 18 Jan 2013 07:09:33 +0000 (UTC)
commit 079d14209690892167e6e8a0fc1d9b930242c74f
Author: Martin Pitt <martinpitt gnome org>
Date: Fri Jan 18 08:08:24 2013 +0100
power tests: Disable screen saver locking
Ensure that the tests do not lock the screen when triggering the screen saver.
plugins/power/test.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index d1f3811..ff64405 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -34,6 +34,11 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
self.start_logind()
+ # ensure that our tests don't lock the screen when the screensaver
+ # gets active
+ self.settings_screensaver = Gio.Settings('org.gnome.desktop.screensaver')
+ self.settings_screensaver['lock-enabled'] = False
+
self.settings_gsd_power = Gio.Settings('org.gnome.settings-daemon.plugins.power')
# start power plugin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]