ci/piglit: Allow traces content-type to be binary/octet-stream

This seems to be the case for some traces like https://s3.freedesktop.org/mesa-tracie-results/mesa/mesa/0e6cc731faf4f2d6c1765f369535ce0d.png

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36511>
This commit is contained in:
Corentin Noël
2025-08-01 10:09:12 +02:00
committed by Marge Bot
parent 3020d27326
commit a29b9e47b0

View File

@@ -121,7 +121,7 @@ replay_s3_upload_images() {
fi
__S3_PATH="$PIGLIT_REPLAY_REFERENCE_IMAGES_BASE"
__DESTINATION_FILE_PATH="${line##*-}"
if curl --fail -L -s -I "https://${__S3_PATH}/${__DESTINATION_FILE_PATH}" | grep -q "content-type: application/octet-stream" 2>/dev/null; then
if curl --fail -L -s -I "https://${__S3_PATH}/${__DESTINATION_FILE_PATH}" | grep -Eq "^content-type: (binary|application)\/octet-stream" 2>/dev/null; then
continue
fi
else