Testing: Exit with error if building docker images fails (bug 1277656; r?gps draft
authorRob Wood <rwood@mozilla.com>
Thu, 23 Jun 2016 14:35:52 -0400
changeset 8587 e887dea6634d08ac0c478f23fa70be86efe75d62
parent 8567 b7d62b373addd3847cab168cb34fddca2edebc76
push id938
push userrwood@mozilla.com
push dateThu, 23 Jun 2016 18:36:32 +0000
reviewersgps
bugs1277656
Testing: Exit with error if building docker images fails (bug 1277656; r?gps MozReview-Commit-ID: 8mjX7rKnKvI
create-test-environment
--- a/create-test-environment
+++ b/create-test-environment
@@ -160,11 +160,12 @@ echo ""
 echo "Building Docker images."
 echo "This could take a while and may consume a lot of internet bandwidth."
 echo "If you don't want Docker images, it is safe to hit CTRL+c to abort this."
 
 ./d0cker build-all || {
   echo "You will not be able to run tests that require Docker.";
   echo "Please see https://docs.docker.com/installation/ for how to install Docker.";
   echo "When Docker is installed, re-run this script";
+  exit 1
 }
 
 echo finished creating test environment