]> Cypherpunks repositories - gostls13.git/commit
cmd/go: sort "no test files" test results into normal ordering
authorRuss Cox <rsc@golang.org>
Thu, 21 Nov 2024 13:00:06 +0000 (08:00 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 21 Nov 2024 16:11:20 +0000 (16:11 +0000)
commitc1a0ee37644559f51aeb112dcf6ce3e4316a44df
tree1de1aa141b0795aa6779092601086742e9fc7fe5
parentf7b15264c8656cdda5db1364f30f813dabd743f4
cmd/go: sort "no test files" test results into normal ordering

The code takes care to print test results during "go test ./..."
in the package order, delaying prints until it's that package's
turn, even when tests run in parallel. For some reason, the
prints about the test not running were not included in that,
making them print out of order. Fix that, printing that result
with the usual result printer.

This is particularly noticeable during all.bash when we start
letting cmd/dist vet packages without tests.

Change-Id: If07f9fe5a6fac2b57b24d599126b451357a164e2
Reviewed-on: https://go-review.googlesource.com/c/go/+/630416
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/test_print.txt [new file with mode: 0644]