diff options
author | Benjamin Berg <bberg@redhat.com> | 2018-01-04 15:20:43 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2018-01-15 15:00:22 +0100 |
commit | 18ee6cd32f320193b482c496f5e7eed9e3e0ba9f (patch) | |
tree | 25fe5becc5b3ac58f6faec2fafb2108ad1af24c5 | |
parent | 9b08637bc3c907886b03accad6f9f4b1a2a575dc (diff) | |
download | gnome-settings-daemon-18ee6cd32f320193b482c496f5e7eed9e3e0ba9f.tar.gz |
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
-rwxr-xr-x | 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 be98af73..13425e95 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 |