[gnome-settings-daemon] power: Make sure to disable auto-lock after test
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Make sure to disable auto-lock after test
- Date: Fri, 26 Apr 2013 15:21:32 +0000 (UTC)
commit a4c69b83a537925d30350ad42151e4a8f897e1c1
Author: Bastien Nocera <hadess hadess net>
Date: Fri Apr 26 17:16:15 2013 +0200
power: Make sure to disable auto-lock after test
The test_idle_time_reset_on_resume() test was failing because
we did not disable the auto-lock, meaning that resuming the
machine wouldn't take it out of the screensaver, and would not
change the presence status to available in gnome-session.
plugins/power/test.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index 7f54944..7ef565d 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -394,6 +394,8 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
def test_idle_time_reset_on_resume(self):
'''Check that the IDLETIME is reset when resuming'''
+ self.settings_screensaver['lock-enabled'] = False
+
# Go idle
self.settings_session['idle-delay'] = 5
self.assertEqual(self.get_status(), gsdpowerenums.GSM_PRESENCE_STATUS_AVAILABLE)
@@ -468,6 +470,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
# Drop the inhibit and see whether we suspend
self.obj_session_mgr.Uninhibit(dbus.UInt32(inhibit_id))
# At this point logind should suspend for us
+ self.settings_screensaver['lock-enabled'] = False
def test_blank_on_lid_close(self):
'''Check that we do blank on lid closing, if the machine will not suspend'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]