]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: convert host tests to use goTest
authorAustin Clements <austin@google.com>
Thu, 10 Nov 2022 18:54:25 +0000 (13:54 -0500)
committerAustin Clements <austin@google.com>
Wed, 16 Nov 2022 21:35:24 +0000 (21:35 +0000)
commitbf5b58708931bcbc04f5bb1359093c6fbc01cf0c
tree59108f1372c040808cf42ce842b754ec6be4ff50
parent898d000c39af73e6d71e89e82c558b343d764e36
cmd/dist: convert host tests to use goTest

This adds support for host tests to goTest and registerTest and
modifies all uses of registerHostTest to use goTest and registerTest.

This eliminates the last case where go test command lines are
constructed by hand. Next we'll clean up all of the infrastructure
support for that.

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).

Preparation for #37486.

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