]> Cypherpunks repositories - gostls13.git/commitdiff
Bail out of gotest immediately if compiling fails.
authorDavid Symonds <dsymonds@golang.org>
Wed, 1 Apr 2009 05:35:55 +0000 (22:35 -0700)
committerDavid Symonds <dsymonds@golang.org>
Wed, 1 Apr 2009 05:35:55 +0000 (22:35 -0700)
R=rsc
APPROVED=rsc
DELTA=4  (2 added, 2 deleted, 0 changed)
OCL=26978
CL=26978

src/cmd/gotest/gotest

index 0ec17322d1b8f50b76b0572f6081482b49fefe20..0c025e3b3468af023dee07a502268c0285af52dc 100755 (executable)
@@ -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
 {