ci/traces: remove first line with YAML version to prevent failure
authorDavid Heidelberg <david.heidelberg@collabora.com>
Wed, 14 Sep 2022 10:20:57 +0000 (12:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Sep 2022 15:44:24 +0000 (15:44 +0000)
Older libyaml (0.2.2) fail with YAML 1.2, just drop it.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18595>

.gitlab-ci/piglit/piglit-traces.sh

index 997b882..0f14e0f 100755 (executable)
@@ -9,6 +9,9 @@ RESULTS=$(realpath -s "$PWD"/results)
 mkdir -p "$RESULTS"
 
 if [ "$PIGLIT_REPLAY_SUBCOMMAND" = "profile" ]; then
+    # workaround for older Debian Bullseye libyaml 0.2.2
+    sed -i "/^%YAML 1\.2$/d" "$PIGLIT_REPLAY_DESCRIPTION_FILE"
+
     yq -i -Y '. | del(.traces[][] | select(.label[0,1,2,3,4,5,6,7,8,9] == "no-perf"))' \
       "$PIGLIT_REPLAY_DESCRIPTION_FILE"  # label positions are a bit hack
 fi