ci: skip minio login if PIGLIT_REPLAY_UPLOAD_TO_MINIO is not set
authorItalo Nicola <italonicola@collabora.com>
Tue, 10 Aug 2021 15:58:07 +0000 (12:58 -0300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Aug 2021 13:24:24 +0000 (13:24 +0000)
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12309>

.gitlab-ci/piglit/run.sh

index 490a72b..bc7e577 100755 (executable)
@@ -212,7 +212,8 @@ fi
 
 FAILURE_MESSAGE=$(printf "%s" "Unexpected change in results:")
 
-if [ "x$PIGLIT_PROFILES" = "xreplay" ]; then
+if [ "x$PIGLIT_PROFILES" = "xreplay" ] \
+       && [ ${PIGLIT_REPLAY_UPLOAD_TO_MINIO:-0} -eq 1 ]; then
     ci-fairy minio login $MINIO_ARGS $CI_JOB_JWT
 fi