diff --git a/Makefile b/Makefile index a45e86817..1c1e074b2 100644 --- a/Makefile +++ b/Makefile @@ -190,7 +190,7 @@ unit-debug: $(BTCD_BIN) unit-cover: $(GOACC_BIN) @$(call print, "Running unit coverage tests.") - $(GOACC_BIN) $(COVER_PKG) -- -tags="$(DEV_TAGS) $(LOG_TAGS)" + $(GOACC) unit-race: @$(call print, "Running unit race tests.") diff --git a/make/testing_flags.mk b/make/testing_flags.mk index f35a779a7..b4109bb5c 100644 --- a/make/testing_flags.mk +++ b/make/testing_flags.mk @@ -116,3 +116,6 @@ endif # Construct the integration test command with the added build flags. ITEST_TAGS := $(DEV_TAGS) $(RPC_TAGS) integration $(backend) + +# Construct the coverage test command with the added build flags. +GOACC := $(GOACC_BIN) $(COVER_PKG) -- -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS)