ci: disable weston session timeout
authorEric Engestrom <eric@igalia.com>
Mon, 13 Mar 2023 10:58:45 +0000 (10:58 +0000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Mar 2023 01:31:19 +0000 (01:31 +0000)
    -iN, --idle-time=N
           Set  the idle timeout to N seconds. The default timeout is
           300 seconds. When there has not been any user input for the idle
           timeout, Weston enters an inactive mode. The screen fades to black,
           monitors may switch off, and the shell may lock the session.
           A value of 0 effectively disables the timeout.

We don't want the session to get locked and monitors to switch off while tests
are running, as many of them depend on swapping buffers.

Cc: mesa-stable
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21877>

.gitlab-ci/common/init-stage2.sh

index 5d8f89a..80bd9f7 100755 (executable)
@@ -160,7 +160,7 @@ if [ -n "$HWCI_START_WESTON" ]; then
 
   env \
     VK_ICD_FILENAMES="/install/share/vulkan/icd.d/${VK_DRIVER}_icd.$(uname -m).json" \
-    weston -Bheadless-backend.so --use-gl -Swayland-0 --xwayland &
+    weston -Bheadless-backend.so --use-gl -Swayland-0 --xwayland --idle-time=0 &
   BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
 
   while [ ! -S "$WESTON_X11_SOCK" ]; do sleep 1; done