From: David Symonds Date: Wed, 1 Apr 2009 05:35:55 +0000 (-0700) Subject: Bail out of gotest immediately if compiling fails. X-Git-Tag: weekly.2009-11-06~1918 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c025cf64dcf0f4a95fae5340eafd9e7ab352944c;p=gostls13.git Bail out of gotest immediately if compiling fails. R=rsc APPROVED=rsc DELTA=4 (2 added, 2 deleted, 0 changed) OCL=26978 CL=26978 --- diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index 0ec17322d1..0c025e3b34 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -50,13 +50,13 @@ files=$(echo $gofiles | sed 's/\.go//g') # to build any test-only dependencies. sed -n 's/^\/\/ gotest: //p' $gofiles | sh +set -e + for i in $gofiles do $GC $i done -set -e - # They all compile; now generate the code to call them. trap "rm -f _testmain.go _testmain.6" 0 1 2 3 14 15 {