]> Cypherpunks repositories - gostls13.git/commit
cmd/go: skip TestDocsUpToDate if 'go build' is not supported
authorBryan C. Mills <bcmills@google.com>
Tue, 28 Feb 2023 15:16:30 +0000 (15:16 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 28 Feb 2023 15:45:49 +0000 (15:45 +0000)
commit21036ed0ff69b4b46e37809c416cfa60c5eee6d6
tree80563c4b81490546aa9cd02f4a4798ceddeb3536
parent72301a9863fb43ff26e9779a086e02cf02031ceb
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 <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/cmd/go/help_test.go