summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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).