summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Heidelberg <david.heidelberg@collabora.com>2023-07-08 13:14:58 +0200
committerMarge Bot <emma+marge@anholt.net>2023-07-10 19:57:45 +0000
commite17535829372d4f43969a89388c6c7bc1a171029 (patch)
tree0da1e16fb963af5a1471df36e0067f140753fe79
parent69614e859e6b39df75652bb4266be525d6f5819c (diff)
ci/traces: switch from xvfb to Weston XWayland
- Drop now unused RUN_CMD_WRAPPER. - Copy-paste Weston initiation code from init-stage2.sh with slightly adjustments. Reviewed-by: Daniel Stone <daniels@collabora.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24056>
-rwxr-xr-x.gitlab-ci/piglit/piglit-traces.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/.gitlab-ci/piglit/piglit-traces.sh b/.gitlab-ci/piglit/piglit-traces.sh
index 8bb9b902838..06214b9aa7c 100755
--- a/.gitlab-ci/piglit/piglit-traces.sh
+++ b/.gitlab-ci/piglit/piglit-traces.sh
@@ -100,7 +100,19 @@ elif [ "$PIGLIT_PLATFORM" = "mixed_glx_egl" ]; then
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform glx --api gl"
else
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform glx --api gl --profile core"
- RUN_CMD_WRAPPER="xvfb-run --server-args=\"-noreset\" sh -c"
+ # copy-paste from init-stage2.sh, please update accordingly
+ {
+ WESTON_X11_SOCK="/tmp/.X11-unix/X0"
+ export WAYLAND_DISPLAY=wayland-0
+ export DISPLAY=:0
+ mkdir -p /tmp/.X11-unix
+
+ env \
+ VK_ICD_FILENAMES="/install/share/vulkan/icd.d/${VK_DRIVER}_icd.$(uname -m).json" \
+ weston -Bheadless-backend.so --use-gl -Swayland-0 --xwayland --idle-time=0 &
+
+ while [ ! -S "$WESTON_X11_SOCK" ]; do sleep 1; done
+ }
fi
# If the job is parallel at the gitlab job level, will take the corresponding
@@ -161,10 +173,6 @@ PIGLIT_CMD="./piglit run -l verbose --timeout 300 -j${FDO_CI_CONCURRENT:-4} $PIG
RUN_CMD="export LD_LIBRARY_PATH=$__LD_LIBRARY_PATH; $SANITY_MESA_VERSION_CMD && $HANG_DETECTION_CMD $PIGLIT_CMD"
-if [ "$RUN_CMD_WRAPPER" ]; then
- RUN_CMD="set +e; $RUN_CMD_WRAPPER \"$(/usr/bin/printf "%q" "$RUN_CMD")\"; set -e"
-fi
-
# The replayer doesn't do any size or checksum verification for the traces in
# the replayer db, so if we had to restart the system due to intermittent device
# errors (or tried to cache replayer-db between runs, which would be nice to