ci/prepare-artifacts: turn file copies into a loop

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36354>
This commit is contained in:
Eric Engestrom 2025-07-22 19:51:32 +02:00 committed by Marge Bot
parent e7102511b0
commit dd15dbae4b

View file

@ -34,18 +34,22 @@ echo "$(cat VERSION) (git-$git_sha)" > install/VERSION
# Test runs don't pull down the git tree, so put the dEQP helper
# script and associated bits there.
cp -Rp .gitlab-ci/bare-metal install/
cp -Rp .gitlab-ci/common install/
cp -Rp .gitlab-ci/piglit install/
cp -Rp .gitlab-ci/fossils.yml install/
cp -Rp .gitlab-ci/fossils install/
cp -Rp .gitlab-ci/crosvm-init.sh install/
cp -Rp .gitlab-ci/*.txt install/
cp -Rp .gitlab-ci/report-flakes.py install/
cp -Rp .gitlab-ci/setup-test-env.sh install/
cp -Rp .gitlab-ci/*-runner.sh install/
cp -Rp .gitlab-ci/bin/structured_logger.py install/
cp -Rp .gitlab-ci/bin/custom_logger.py install/
for f in \
.gitlab-ci/bare-metal \
.gitlab-ci/common \
.gitlab-ci/piglit \
.gitlab-ci/fossils.yml \
.gitlab-ci/fossils \
.gitlab-ci/crosvm-init.sh \
.gitlab-ci/*.txt \
.gitlab-ci/report-flakes.py \
.gitlab-ci/setup-test-env.sh \
.gitlab-ci/*-runner.sh \
.gitlab-ci/bin/structured_logger.py \
.gitlab-ci/bin/custom_logger.py \
; do
cp -Rp "$f" install/
done
mapfile -t duplicate_files < <(
find src/ -path '*/ci/*' \