[#209] Makefile: Allow to override test flags

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-03-14 12:29:00 +03:00
parent 64b83f8220
commit d9ec7c1988

View file

@ -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: