Commit 1cf6d474 authored by Wei Xiao's avatar Wei Xiao Committed by Brad Fitzpatrick

cmd/dist: fix incorrect platform string shared by all tests

all tests currently share the same platform string and fail to
vet expected platforms

Fixes #19958

Change-Id: I2801e1e84958e31975769581e27ea5ca6a0edf5b
Reviewed-on: https://go-review.googlesource.com/40511
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 75176947
......@@ -340,7 +340,8 @@ var stdOutErrAreTerminals func() bool
func (t *tester) registerTests() {
if strings.HasSuffix(os.Getenv("GO_BUILDER_NAME"), "-vetall") {
// Run vet over std and cmd and call it quits.
for osarch := range cgoEnabled {
for k := range cgoEnabled {
osarch := k
t.tests = append(t.tests, distTest{
name: "vet/" + osarch,
heading: "go vet std cmd",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment