Skip to content

Commit c1ff59c

Browse files
authored
use "true" for RACE_ENABLED (#15261)
1 parent 9fdda90 commit c1ff59c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ EXTRA_GOFLAGS ?=
6464
MAKE_VERSION := $(shell $(MAKE) -v | head -n 1)
6565
MAKE_EVIDENCE_DIR := .make_evidence
6666

67-
ifneq ($(RACE_ENABLED),)
68-
GOTESTFLAGS ?= -race
67+
ifeq ($(RACE_ENABLED),true)
68+
GOFLAGS += -race
69+
GOTESTFLAGS += -race
6970
endif
7071

7172
STORED_VERSION_FILE := VERSION
@@ -380,7 +381,7 @@ test-check:
380381
.PHONY: test\#%
381382
test\#%:
382383
@echo "Running go test with -tags '$(TEST_TAGS)'..."
383-
@$(GO) test -mod=vendor -tags='$(TEST_TAGS)' -run $(subst .,/,$*) $(GO_PACKAGES)
384+
@$(GO) test -mod=vendor $(GOTESTFLAGS) -tags='$(TEST_TAGS)' -run $(subst .,/,$*) $(GO_PACKAGES)
384385

385386
.PHONY: coverage
386387
coverage:

0 commit comments

Comments
 (0)