From dd15dbae4b57a60c797f71bca02578af914cedc4 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 22 Jul 2025 19:51:32 +0200 Subject: [PATCH] ci/prepare-artifacts: turn file copies into a loop Part-of: --- .gitlab-ci/prepare-artifacts.sh | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci/prepare-artifacts.sh b/.gitlab-ci/prepare-artifacts.sh index 8fbb6e1d5f4..b14bc2fa879 100755 --- a/.gitlab-ci/prepare-artifacts.sh +++ b/.gitlab-ci/prepare-artifacts.sh @@ -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/*' \