diff options
author | Russ Cox <rsc@golang.org> | 2009-12-04 18:34:59 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-12-04 18:34:59 -0800 |
commit | 041cd15311d759913d77f82b4c1f3cb2e0e55768 (patch) | |
tree | 654fc5c26c803a6dc18b2ca3425e7ad7971371d3 | |
parent | 4082f84021838387250f3c45973e780327cd2368 (diff) | |
download | golang-041cd15311d759913d77f82b4c1f3cb2e0e55768.tar.gz |
gotest: stop if the // gotest commands fail
R=r
http://codereview.appspot.com/166067
-rwxr-xr-x | src/cmd/gotest/gotest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index 8de066588..3c5d67b6b 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). |