Skip to content

Commit 21036ed

Browse files
Bryan C. Millsgopherbot
Bryan C. Mills
authored andcommitted
cmd/go: skip TestDocsUpToDate if 'go build' is not supported
testGo is currently only configured if testenv.HasGoBuild returns true, which implies that a complete toolchain is present. Since setting up testGo now only uses the test binary itself, it does not actually require 'go build', but fixing that will be a bit more involved. For now, just skip the test when it isn't set up. Fixes #58775. Change-Id: I6487b47b44c87aa139ae11cfa44ce6f0f5f84bd4 Reviewed-on: https://go-review.googlesource.com/c/go/+/472095 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Bryan Mills <[email protected]>
1 parent 72301a9 commit 21036ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/help_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
var fixDocs = flag.Bool("fixdocs", false, "if true, update alldocs.go")
1818

1919
func TestDocsUpToDate(t *testing.T) {
20+
testenv.MustHaveGoBuild(t)
2021
if !*fixDocs {
2122
t.Parallel()
2223
}

0 commit comments

Comments
 (0)