diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-03-22 11:31:03 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2023-03-22 14:43:39 +0100 |
commit | 20170b7e105020635ae351a6712a79fedf4ea1ba (patch) | |
tree | e1918f512688da0982cc094d4025a759cff7d4dd | |
parent | 7f2181bcce665781b4b2708e2538649720bcb69a (diff) | |
download | xserver-20170b7e105020635ae351a6712a79fedf4ea1ba.tar.gz |
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 fc625fe172d9f6a149a594b5214364bedf680239)
-rwxr-xr-x | test/scripts/xwayland-piglit.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/scripts/xwayland-piglit.sh b/test/scripts/xwayland-piglit.sh index 7c30ecbab..e746117e3 100755 --- a/test/scripts/xwayland-piglit.sh +++ b/test/scripts/xwayland-piglit.sh @@ -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 |