summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-12-04 18:34:59 -0800
committerRuss Cox <rsc@golang.org>2009-12-04 18:34:59 -0800
commit041cd15311d759913d77f82b4c1f3cb2e0e55768 (patch)
tree654fc5c26c803a6dc18b2ca3425e7ad7971371d3
parent4082f84021838387250f3c45973e780327cd2368 (diff)
downloadgolang-041cd15311d759913d77f82b4c1f3cb2e0e55768.tar.gz
gotest: stop if the // gotest commands fail
R=r http://codereview.appspot.com/166067
-rwxr-xr-xsrc/cmd/gotest/gotest2
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).