[gnome-settings-daemon/benzea/increase-test-rungime] power: Increase permissible runtime for some tests



commit 972e78b081793b3f59b811f1b9504a46ed63e044
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Jan 8 14:27:26 2020 +0100

    power: Increase permissible runtime for some tests
    
    Since increasing the timeout to blank in the screensaver from 15s to 30s
    the test needs very close to 120s, sometimes causing failures in the CI
    run. Increase the run-time for the affected tests to fix this.

 plugins/power/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plugins/power/meson.build b/plugins/power/meson.build
index 5b9fa2f5..69e619f2 100644
--- a/plugins/power/meson.build
+++ b/plugins/power/meson.build
@@ -143,7 +143,8 @@ foreach i : [ 1, 2, 3, 4, 5, 6, 7, 8 ]
     test_py,
     args: [ 'PowerPluginTest@0@'.format(i) ],
     env: envs,
-    timeout: 120
+    # The first set of tests takes very long because of SCREENSAVER_TIMEOUT_BLANK
+    timeout: i == 1 ? 180 : 120
   )
 endforeach
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]