]> Cypherpunks repositories - gostls13.git/commitdiff
gotest: stop if the // gotest commands fail
authorRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 02:34:59 +0000 (18:34 -0800)
committerRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 02:34:59 +0000 (18:34 -0800)
R=r
https://golang.org/cl/166067

src/cmd/gotest/gotest

index 8de0665886776e06d08f93f057d09c84165928e1..3c5d67b6b57390e6fe7d57f8e7e82021450f42e0 100755 (executable)
@@ -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).