make: add env before go test for unit tests to support modules

This commit is contained in:
Olaoluwa Osuntokun 2018-11-29 20:05:32 -08:00
parent 0936aebf1d
commit 9bdc1dc2f2
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -49,7 +49,7 @@ UNIT_RACE := $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS) -race $(UNI
endif
ifeq ($(UNIT_TARGETED), no)
UNIT := $(GOLIST) | $(XARGS) $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS)
UNIT := $(GOLIST) | $(XARGS) env $(GOTEST) -tags="$(DEV_TAGS) $(LOG_TAGS)" $(TEST_FLAGS)
UNIT_RACE := $(UNIT) -race
endif