tailscale/cmd/testwrapper
Maisem Ali e6ab7d3c14 cmd/testwrapper: parse args better
Previously we were just smushing together args and not trying
to parse the values at all. This resulted in the args to testwrapper
being limited and confusing.

This makes it so that testwrapper parses flags in the exact format as `go test`
command and passes them down in the provided order. It uses tesing.Init to
register flags that `go test` understands, however those are not the only
flags understood by `go test` (such as `-exec`) so we register these separately.

Updates tailscale/corp#14975

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2023-10-16 17:33:50 -07:00
..
flakytest cmd/testwrapper: include flake URL in JSON metadata 2023-09-28 18:37:22 -07:00
args_test.go cmd/testwrapper: parse args better 2023-10-16 17:33:50 -07:00
args.go cmd/testwrapper: parse args better 2023-10-16 17:33:50 -07:00
testwrapper_test.go cmd/testwrapper: exit code 1 when go build fails (#9276) 2023-09-07 17:18:26 +01:00
testwrapper.go cmd/testwrapper: parse args better 2023-10-16 17:33:50 -07:00