aboutsummaryrefslogtreecommitdiff
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
commitd7402cea8c08e3e9420b1a06bc89a8c00b1c3881 (patch)
tree3878e3cb2fb0e40356ba267cb64ed05e1bc33148
parent2807621d01e8e55fd4748f0159599e61f2cd91f4 (diff)
downloadgo-d7402cea8c08e3e9420b1a06bc89a8c00b1c3881.tar.gz
go-d7402cea8c08e3e9420b1a06bc89a8c00b1c3881.zip
gotest: stop if the // gotest commands fail
R=r https://golang.org/cl/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 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).