Bug 1266624: apply backoff mozharness fixes to macosx script. r=dustin
authorWander Lairson Costa <wcosta@mozilla.com>
Wed, 07 Dec 2016 10:29:00 +0100
changeset 325587 05799cb1659db81b6901696f4c273882566e4977
parent 325586 d16033cf3011f19a7e2d0dc8a706c8ebb28f56cf
child 325588 7538c4d8bd029d34dad3d69ecf48fdb4824d9a08
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersdustin
bugs1266624
milestone53.0a1
Bug 1266624: apply backoff mozharness fixes to macosx script. r=dustin
taskcluster/scripts/tester/test-macosx.sh
--- a/taskcluster/scripts/tester/test-macosx.sh
+++ b/taskcluster/scripts/tester/test-macosx.sh
@@ -35,20 +35,19 @@ download_mozharness() {
     local attempt=0
 
     echo "Downloading mozharness"
 
     while [[ $attempt < $max_attempts ]]; do
         if curl --fail -o mozharness.zip --retry 10 -L $MOZHARNESS_URL; then
             rm -rf mozharness
             if unzip -q mozharness.zip; then
-                break
-            else
-                echo "error unzipping mozharness.zip" >&2
+                return 0
             fi
+            echo "error unzipping mozharness.zip" >&2
         else
             echo "failed to download mozharness zip" >&2
         fi
         echo "Download failed, retrying in $timeout seconds..." >&2
         sleep $timeout
         timeout=$((timeout*2))
         attempt=$((attempt+1))
     done