[gnome-settings-daemon/benzea/systemd-lower-timeout: 2/2] power: Fix running of backlight tests
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/benzea/systemd-lower-timeout: 2/2] power: Fix running of backlight tests
- Date: Tue, 10 Dec 2019 14:29:31 +0000 (UTC)
commit 1c301c3e299d09a7db4bc4cd6fbf1be17418d7f6
Author: Benjamin Berg <bberg redhat com>
Date: Tue Dec 10 15:16:57 2019 +0100
power: Fix running of backlight tests
Turns out the tests were always skipped because the environment variable
comparison was not done with the correct type.
plugins/power/test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index d4fe68f6..f50675b8 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -60,7 +60,7 @@ class PowerPluginBase(gsdtestcase.GSDTestCase):
# device based on the name of the test.
self.add_backlight()
- if 'HAVE_SYSFS_BACKLIGHT' in os.environ and os.environ['HAVE_SYSFS_BACKLIGHT'] == 1:
+ if 'HAVE_SYSFS_BACKLIGHT' in os.environ and os.environ['HAVE_SYSFS_BACKLIGHT'] == '1':
self.skip_sysfs_backlight = False
else:
self.skip_sysfs_backlight = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]