]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: use goTest for manual go test invocations
authorAustin Clements <austin@google.com>
Wed, 2 Nov 2022 18:33:04 +0000 (14:33 -0400)
committerAustin Clements <austin@google.com>
Wed, 16 Nov 2022 21:35:19 +0000 (21:35 +0000)
commit2946c887babdafd8e92550723d5bd0aeb5613335
tree7f378b6b8ea748df657f13a35fe6a81184b6abc0
parentc3a0854e31155de9baad65da70e8ffb653f3b721
cmd/dist: use goTest for manual go test invocations

This CL rewrites everywhere in dist that manually constructs an
exec.Cmd to run "go test" to use the goTest abstraction. All remaining
invocations of "go test" after this CL construct the command line
manually, but ultimately use addCmd to execute it.

I traced all exec calls from cmd/dist on linux/amd64 and this makes
only no-op changes (such as re-arranging the order of flags).

For #37486.

Change-Id: Idc7497e39bac04def7ddaf2010881c9623e76fd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/450015
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Austin Clements <austin@google.com>
src/cmd/dist/test.go