[gnome-settings-daemon] power: Use UPower 1.0 API in tests
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Use UPower 1.0 API in tests
- Date: Wed, 25 Jan 2017 16:19:55 +0000 (UTC)
commit 4df5a99c60041205c226185f0f2d5772bcd6d8d4
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 17 12:08:05 2017 +0100
power: Use UPower 1.0 API in tests
Otherwise we'd get warnings about some data types being wrong.
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 a063362..432e810 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -59,7 +59,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
# start mock upowerd
(self.upowerd, self.obj_upower) = self.spawn_server_template(
- 'upower', {'OnBattery': True, 'LidIsClosed': False}, stdout=subprocess.PIPE)
+ 'upower', {'DaemonVersion': '0.99', 'OnBattery': True, 'LidIsClosed': False},
stdout=subprocess.PIPE)
gsdtestcase.set_nonblock(self.upowerd.stdout)
# start mock gnome-shell screensaver
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]