ci/prepare-artifacts: check if we're about to overwrite ci config/expectations files
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30384>
This commit is contained in:

committed by
Marge Bot

parent
197701b860
commit
6a9676b79c
@@ -44,6 +44,21 @@ cp -Rp .gitlab-ci/*-runner.sh install/
|
|||||||
cp -Rp .gitlab-ci/bin/structured_logger.py install/
|
cp -Rp .gitlab-ci/bin/structured_logger.py install/
|
||||||
cp -Rp .gitlab-ci/bin/custom_logger.py install/
|
cp -Rp .gitlab-ci/bin/custom_logger.py install/
|
||||||
|
|
||||||
|
mapfile -t duplicate_files < <(
|
||||||
|
find src/ -path '*/ci/*' \
|
||||||
|
\( \
|
||||||
|
-name '*.txt' \
|
||||||
|
-o -name '*.toml' \
|
||||||
|
-o -name '*traces*.yml' \
|
||||||
|
\) \
|
||||||
|
-exec basename -a {} + | sort | uniq -d
|
||||||
|
)
|
||||||
|
if [ ${#duplicate_files[@]} -gt 0 ]; then
|
||||||
|
echo 'Several files with the same name in various ci/ folders:'
|
||||||
|
printf -- ' %s\n' "${duplicate_files[@]}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
find src/ -path '*/ci/*' \
|
find src/ -path '*/ci/*' \
|
||||||
\( \
|
\( \
|
||||||
-name '*.txt' \
|
-name '*.txt' \
|
||||||
|
Reference in New Issue
Block a user