diff options
Diffstat (limited to 'src/cmd/dist/test.go')
-rw-r--r-- | src/cmd/dist/test.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index f16bf32bbf..f148fb97b5 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -573,9 +573,17 @@ func (t *tester) registerRaceBenchTest(pkg string) { func (t *tester) registerTests() { // registerStdTestSpecially tracks import paths in the standard library // whose test registration happens in a special way. + // + // These tests *must* be able to run normally as part of "go test std cmd", + // even if they are also registered separately by dist, because users often + // run go test directly. Use skips or build tags in preference to expanding + // this list. registerStdTestSpecially := map[string]bool{ - "runtime/internal/wasitest": true, // Registered at the bottom as a host test. - "cmd/internal/testdir": true, // Registered at the bottom with sharding. + // testdir can run normally as part of "go test std cmd", but because + // it's a very large test, we register is specially as several shards to + // enable better load balancing on sharded builders. Ideally the build + // system would know how to shard any large test package. + "cmd/internal/testdir": true, } // Fast path to avoid the ~1 second of `go list std cmd` when |