cmd/testwrapper: add support for the -vet test flag

So callers can run testwrapper with -vet=off if they're already
running vet explicitly in a concurrent test job.

Updates tailscale/corp#28679

Change-Id: I74ad56e560076d187f5e3a7d7381e1dac89d860c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2026-01-30 12:35:00 -08:00
committed by Brad Fitzpatrick
parent 698e92a761
commit 3ce13eb2b9

View File

@@ -89,6 +89,7 @@ func newTestFlagSet() *flag.FlagSet {
// TODO(maisem): figure out what other flags we need to register explicitly.
fs.String("exec", "", "Command to run tests with")
fs.Bool("race", false, "build with race detector")
fs.String("vet", "", "vet checks to run, or 'off' or 'all'")
return fs
}