mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-08 12:50:43 +02:00
xwayland/test: Don't catch errors in run-piglit.sh
The xwayland-piglit.sh script spawns weston, runs run-piglit.sh and
finally kills weston.
However, this whole script is running with “-e” meaning that any error
will cause the script to exit immediately.
As a result, if run-piglit.sh exits with a non-zero code such as 77 for
skipping the test, the script will exit prematurely leaving weston
running, and meson will simply wait until the timeout kicks in, and
fail eventually instead of skipping the test as it should.
Fix this by removing the option to exit immediately prior to spawn the
script run-piglit.sh.
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1204
Suggested-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
(cherry picked from commit f37d11cd96)
This commit is contained in:
parent
b7b2c34068
commit
0401e85a3c
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ PIGLIT_ARGS="$PIGLIT_ARGS -x xcopyarea@1"
|
|||
|
||||
export PIGLIT_ARGS
|
||||
|
||||
# Do not let run-piglit.sh exit status terminate this script prematurely
|
||||
set +e
|
||||
$XSERVER_DIR/test/scripts/run-piglit.sh
|
||||
PIGLIT_STATUS=$?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue