[gnome-settings-daemon] power: Set correct environment variable during testing



commit 18ee6cd32f320193b482c496f5e7eed9e3e0ba9f
Author: Benjamin Berg <bberg redhat com>
Date:   Thu Jan 4 15:20:43 2018 +0100

    power: Set correct environment variable during testing
    
    The test was setting GSD_MOCK but the C code checked GSD_MOCKED. Fix
    this by using GSD_MOCKED in all cases.
    
    This fixes a regression introduced in commit 5fc7cb64 (power: Make power
    plugin "mock" support a run-time check).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792210

 plugins/power/test.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index be98af7..13425e9 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -31,7 +31,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
     '''Test the power plugin'''
 
     def setUp(self):
-        os.environ['GSD_MOCK']='1'
+        os.environ['GSD_MOCKED']='1'
         self.check_logind_gnome_session()
         self.start_logind()
         self.daemon_death_expected = False


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]