aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-11-14 14:32:24 -0500
committerBryan C. Mills <bcmills@google.com>2019-11-14 21:33:00 +0000
commitfc3eae52810f8a89ed656b30a98ad7a08104dc33 (patch)
treee5f890b19f069201041bb189b0e5f495c08c64e3 /src/cmd/dist
parentd3c2b1f17600fadeebf62d65c85baf3bef879e2b (diff)
downloadgo-fc3eae52810f8a89ed656b30a98ad7a08104dc33.tar.xz
doc: convert remaining bash tests to Go
Updates #28387 Updates #30316 Fixes #35574 Change-Id: I21c9e18573909e092ed8dcec91b8542bb97e9f5a Reviewed-on: https://go-review.googlesource.com/c/go/+/207263 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/dist')
-rw-r--r--src/cmd/dist/test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index 9488b9744c..2a452f0453 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -710,10 +710,10 @@ func (t *tester) registerTests() {
// Doc tests only run on builders.
// They find problems approximately never.
- if t.hasBash() && goos != "js" && goos != "android" && !t.iOS() && os.Getenv("GO_BUILDER_NAME") != "" {
- t.registerTest("doc_progs", "../doc/progs", "time", "go", "run", "run.go")
- t.registerTest("wiki", "../doc/articles/wiki", "./test.bash")
- t.registerTest("codewalk", "../doc/codewalk", "time", "./run")
+ if goos != "js" && goos != "android" && !t.iOS() && os.Getenv("GO_BUILDER_NAME") != "" {
+ t.registerTest("doc_progs", "../doc/progs", "go", "run", "run.go")
+ t.registerTest("wiki", "../doc/articles/wiki", t.goTest(), ".")
+ t.registerTest("codewalk", "../doc/codewalk", t.goTest(), "codewalk_test.go")
}
if goos != "android" && !t.iOS() {