diff options
author | David Heidelberg <david.heidelberg@collabora.com> | 2023-10-08 22:01:50 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-10-10 12:46:51 +0000 |
commit | 82cfed975869a283d73fce5a771af890485486ae (patch) | |
tree | 9a1d2f40f41fb9bb4c8fee762b91e38dee4a0093 | |
parent | ea0e22da4424a2015a894e7f4dce89870b74d234 (diff) | |
download | mesa-82cfed975869a283d73fce5a771af890485486ae.tar.gz mesa-82cfed975869a283d73fce5a771af890485486ae.tar.bz2 mesa-82cfed975869a283d73fce5a771af890485486ae.zip |
ci/traces: upload only missing trace images
Right now, S3 always returns something, so we need to check
the content-type .
Acked-by: Emma Anholt <emma@anholt.net>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25606>
-rwxr-xr-x | .gitlab-ci/piglit/piglit-traces.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci/piglit/piglit-traces.sh b/.gitlab-ci/piglit/piglit-traces.sh index 8f4ec1a1fa7..2fac0d9cca4 100755 --- a/.gitlab-ci/piglit/piglit-traces.sh +++ b/.gitlab-ci/piglit/piglit-traces.sh @@ -133,7 +133,7 @@ replay_minio_upload_images() { fi __S3_PATH="$PIGLIT_REPLAY_REFERENCE_IMAGES_BASE" __DESTINATION_FILE_PATH="${line##*-}" - if curl -L -s -X HEAD "https://${__S3_PATH}/${__DESTINATION_FILE_PATH}" 2>/dev/null; then + if curl -L -s -I "https://${__S3_PATH}/${__DESTINATION_FILE_PATH}" | grep -q "content-type: application/octet-stream" 2>/dev/null; then continue fi else |