cmd/internal/testdir: re-enable default all codegen flag on linux-amd64

This was limited to just the mainline linux-amd64 builder, but we don't
use that name anymore. Use the LUCI name instead, gotip-linux-amd64.

Change-Id: Ib4377ad336c529512d9939ff9dce0ea242528b74
Reviewed-on: https://go-review.googlesource.com/c/go/+/703136
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Michael Anthony Knyszek 2025-09-11 23:50:00 +00:00 committed by Gopher Robot
parent 004858ccdd
commit 9e71d8a9f7

View file

@ -52,7 +52,7 @@ var (
// the linux-amd64 builder that's already very fast, so we get more // the linux-amd64 builder that's already very fast, so we get more
// test coverage on trybots. See https://go.dev/issue/34297. // test coverage on trybots. See https://go.dev/issue/34297.
func defaultAllCodeGen() bool { func defaultAllCodeGen() bool {
return os.Getenv("GO_BUILDER_NAME") == "linux-amd64" return testenv.Builder() == "gotip-linux-amd64"
} }
var ( var (