diff options
author | David Symonds <dsymonds@golang.org> | 2009-03-31 22:35:55 -0700 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2009-03-31 22:35:55 -0700 |
commit | b40490c7bab9284209baa84dd854b140001c0b8c (patch) | |
tree | 4e8a0f66fb00982de1506c4461d1e605aaa411a3 /src/cmd/gotest | |
parent | 9415d5a428df2f674adba871468a10476bd2b93e (diff) | |
download | golang-b40490c7bab9284209baa84dd854b140001c0b8c.tar.gz |
Bail out of gotest immediately if compiling fails.
R=rsc
APPROVED=rsc
DELTA=4 (2 added, 2 deleted, 0 changed)
OCL=26978
CL=26978
Diffstat (limited to 'src/cmd/gotest')
-rwxr-xr-x | src/cmd/gotest/gotest | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index 0ec17322d..0c025e3b3 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 { |