test: Use Xwayland instead of wayland/weston-info
When neither `wayland-info` nor `weston-info` are installed, the `xwayland-piglit.sh` script will wait indefinitely for the compositor to start. Use `Xwayland -pogo` instead to wait until weston is initialized. Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1536 Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Signed-off-by: José Expósito <jexposit@redhat.com>
This commit is contained in:
parent
e820030de2
commit
8cce7f5d64
|
@ -17,13 +17,8 @@ weston --no-config --backend=headless-backend.so --socket=wayland-$$ &
|
|||
WESTON_PID=$!
|
||||
export WAYLAND_DISPLAY=wayland-$$
|
||||
|
||||
# We can use either wayland-info or weston-info (deprecated), depending
|
||||
# on what's actually available.
|
||||
WAYLAND_INFO=wayland-info
|
||||
command -V $WAYLAND_INFO >/dev/null 2>&1 || WAYLAND_INFO=weston-info
|
||||
|
||||
# Wait for weston to initialize before starting Xwayland
|
||||
timeout --preserve-status 60s bash -c "while ! $WAYLAND_INFO &>/dev/null; do sleep 1; done"
|
||||
timeout --preserve-status 60s bash -c "while ! $XSERVER_BUILDDIR/hw/xwayland/Xwayland -pogo &>/dev/null; do sleep 1; done"
|
||||
|
||||
# Start an Xwayland server
|
||||
export PIGLIT_RESULTS_DIR=$XSERVER_BUILDDIR/test/piglit-results/xwayland
|
||||
|
|
Loading…
Reference in New Issue