ci: Add a weston.ini

This lets us avoid a few command line options.  Also, we're to need it
for setting the XWayland path, which isn't available as a command line
option.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36026>
This commit is contained in:
Faith Ekstrand 2025-07-08 13:45:39 -04:00 committed by Marge Bot
parent 466c0a69dd
commit a503e86615
3 changed files with 6 additions and 4 deletions

View file

@ -198,8 +198,7 @@ if [ -n "$HWCI_START_WESTON" ]; then
export DISPLAY=:0
mkdir -p /tmp/.X11-unix
env \
weston -Bheadless-backend.so --use-gl -Swayland-0 --xwayland --idle-time=0 &
env weston --config="/install/common/weston.ini" -Swayland-0 --use-gl &
BACKGROUND_PIDS="$! $BACKGROUND_PIDS"
while [ ! -S "$WESTON_X11_SOCK" ]; do sleep 1; done

View file

@ -0,0 +1,4 @@
[core]
backend=headless-backend.so
xwayland=true
idle-time=0

View file

@ -97,8 +97,7 @@ else
export DISPLAY=:0
mkdir -p /tmp/.X11-unix
env \
weston -Bheadless-backend.so --use-gl -Swayland-0 --xwayland --idle-time=0 &
env weston --config="/install/common/weston.ini" -Swayland-0 --use-gl &
while [ ! -S "$WESTON_X11_SOCK" ]; do sleep 1; done
}