From 0c070ebfbd38af1dcb7b1a3c09f0812ef781429b Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 4 May 2023 08:18:30 -0600 Subject: [PATCH] ginkgo json output: only in CI, not on laptop runs Followup to #18422: disable --json-report except under CI, which is where it's useful. Signed-off-by: Ed Santiago --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f635c677f..ea1297ec78 100644 --- a/Makefile +++ b/Makefile @@ -128,6 +128,8 @@ GINKGOTIMEOUT ?= -timeout=90m GINKGOWHAT ?= test/e2e/. GINKGO_PARALLEL=y GINKGO ?= ./test/tools/build/ginkgo +# ginkgo json output is only useful in CI, not on developer runs +GINKGO_JSON ?= $(if $(CI),--json-report ginkgo-e2e.json,) # Conditional required to produce empty-output if binary not built yet. RELEASE_VERSION = $(shell if test -x test/version/version; then test/version/version; fi) @@ -559,7 +561,7 @@ test: localunit localintegration remoteintegration localsystem remotesystem ## .PHONY: ginkgo-run ginkgo-run: .install.ginkgo $(GINKGO) version - $(GINKGO) -vv $(TESTFLAGS) --tags "$(TAGS) remote" $(GINKGOTIMEOUT) --flake-attempts 3 --trace --no-color --json-report ginkgo-e2e.json $(if $(findstring y,$(GINKGO_PARALLEL)),-p,) $(GINKGOWHAT) $(HACK) + $(GINKGO) -vv $(TESTFLAGS) --tags "$(TAGS) remote" $(GINKGOTIMEOUT) --flake-attempts 3 --trace --no-color $(GINKGO_JSON) $(if $(findstring y,$(GINKGO_PARALLEL)),-p,) $(GINKGOWHAT) $(HACK) .PHONY: ginkgo ginkgo: