ci: Adds /usr/local/bin to PATH at piglit-traces.sh

yq and ci-fairy are installed in /usr/local/bin but on
script execution that route is not included by default
for all runners.

Identified on RPI4 runners.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27748>
(cherry picked from commit babb82d81a)
This commit is contained in:
Jose Maria Casanova Crespo 2024-02-21 13:14:06 +01:00 committed by Eric Engestrom
parent 5131484a30
commit cc34111ec0
2 changed files with 5 additions and 1 deletions

View file

@ -15,6 +15,10 @@ mkdir -p "$RESULTS"
export PIGLIT_REPLAY_DESCRIPTION_FILE="$INSTALL/$PIGLIT_TRACES_FILE"
# FIXME: guess why /usr/local/bin is not included in all runners PATH.
# Needed because yq and ci-fairy are installed there.
PATH="/usr/local/bin:$PATH"
if [ "$PIGLIT_REPLAY_SUBCOMMAND" = "profile" ]; then
yq -iY 'del(.traces[][] | select(.label[]? == "no-perf"))' \
"$PIGLIT_REPLAY_DESCRIPTION_FILE"

View file

@ -3524,7 +3524,7 @@
"description": "ci: Adds /usr/local/bin to PATH at piglit-traces.sh",
"nominated": false,
"nomination_type": 3,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null