From d9ec7c19880772eed64170b730b6fe7cb670eca3 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 14 Mar 2024 12:29:00 +0300 Subject: [PATCH] [#209] Makefile: Allow to override test flags Signed-off-by: Evgenii Stratonikov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e150980..0b4011f 100755 --- a/Makefile +++ b/Makefile @@ -8,8 +8,9 @@ OUTPUT_LINT_DIR ?= $(shell pwd)/bin LINT_DIR = $(OUTPUT_LINT_DIR)/golangci-lint-$(LINT_VERSION)-v$(TRUECLOUDLAB_LINT_VERSION) # Run tests +test: GOFLAGS ?= "-cover -count=1" test: - @go test ./... -cover -count=1 + @GOFLAGS=$(GOFLAGS) go test ./... # Pull go dependencies dep: