[gnome-settings-daemon/benzea/systemd-lower-timeout] power: Fix running of backlight tests



commit daef9cd73d4ec5f1c70722c15c2271643f6198e1
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 5e922f17..58014dbf 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]