testing: exit with error if building docker containers fails (bug 1277656); r?gps draft
authorRob Wood <rwood@mozilla.com>
Thu, 02 Jun 2016 16:15:49 -0400
changeset 374783 aab4006d8de917e56d1dcc0ba22ad8d19792e8c3
parent 374782 83aa6982c915405899e1dbe5c36e9f6a9a9abf97
child 522680 e557a58c59499c176463716d6be8267694ae2691
push id20072
push userrwood@mozilla.com
push dateThu, 02 Jun 2016 20:17:27 +0000
reviewersgps
bugs1277656
testing: exit with error if building docker containers fails (bug 1277656); r?gps MozReview-Commit-ID: 7xfs2XGYFKH
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