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



commit d0cc7cc5543120eb86f66f44fd65d0f04477f1f5
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]