mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
test: Use either wayland-info or weston-info
weston-info has been deprecated for quite some time, whereas wayland-info
may not be available yet.
So we use either, depending on what's actually available.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
(cherry picked from commit fc625fe172)
This commit is contained in:
parent
d2e27b0a8c
commit
9e52a28be8
1 changed files with 6 additions and 1 deletions
|
|
@ -17,8 +17,13 @@ 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 ! weston-info &>/dev/null; do sleep 1; done'
|
||||
timeout --preserve-status 60s bash -c "while ! $WAYLAND_INFO &>/dev/null; do sleep 1; done"
|
||||
|
||||
# Start an Xwayland server
|
||||
export PIGLIT_RESULTS_DIR=$XSERVER_BUILDDIR/test/piglit-results/xwayland
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue