From 24b3363c37af86b071730b33aa0d403b6800a7a4 Mon Sep 17 00:00:00 2001 From: Tom Dyas Date: Fri, 17 Feb 2023 00:22:16 +0100 Subject: [PATCH] go: update pass-through `go test` options for Go v1.20 (#18229) Update the list of pass-through `go test` options for Go v1.20. --- src/python/pants/backend/go/go_sources/gentestflags.go | 2 +- src/python/pants/backend/go/goals/test.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/pants/backend/go/go_sources/gentestflags.go b/src/python/pants/backend/go/go_sources/gentestflags.go index 7410b6b831c..c0246572768 100644 --- a/src/python/pants/backend/go/go_sources/gentestflags.go +++ b/src/python/pants/backend/go/go_sources/gentestflags.go @@ -55,7 +55,7 @@ func testFlags() map[string]bool { name := strings.TrimPrefix(f.Name, "test.") switch name { - case "testlogfile", "paniconexit0", "fuzzcachedir", "fuzzworker": + case "testlogfile", "paniconexit0", "fuzzcachedir", "fuzzworker", "gocoverdir": // These flags are only for use by cmd/go. default: expectsValue := true diff --git a/src/python/pants/backend/go/goals/test.py b/src/python/pants/backend/go/goals/test.py index a9fbc656594..b8bf3e798fe 100644 --- a/src/python/pants/backend/go/goals/test.py +++ b/src/python/pants/backend/go/goals/test.py @@ -94,6 +94,7 @@ "run": True, "short": False, "shuffle": True, + "skip": True, "timeout": True, "trace": True, "v": False,