From: Russ Cox Date: Sat, 5 Dec 2009 02:34:59 +0000 (-0800) Subject: gotest: stop if the // gotest commands fail X-Git-Tag: weekly.2009-12-07~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d7402cea8c08e3e9420b1a06bc89a8c00b1c3881;p=gostls13.git gotest: stop if the // gotest commands fail R=r https://golang.org/cl/166067 --- diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index 8de0665886..3c5d67b6b5 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -77,7 +77,7 @@ esac # Run any commands given in sources, like # // gotest: $GC foo.go # to build any test-only dependencies. -sed -n 's/^\/\/ gotest: //p' $gofiles | sh +sed -n 's/^\/\/ gotest: //p' $gofiles | sh -e || exit 1 # Split $gofiles into external gofiles (those in *_test packages) # and internal ones (those in the main package).