Merge pull request #1416 from tophj-ibm/fix-race-testflags

Only use race flag on amd64
This commit is contained in:
Phil Estes 2017-08-23 12:43:05 -04:00 committed by GitHub
commit 12b43a5c8a
4 changed files with 16 additions and 8 deletions

View File

@ -1,5 +1,7 @@
#darwin specific settings #darwin specific settings
COMMANDS += containerd-shim COMMANDS += containerd-shim
# supports go test -race # amd64 supports go test -race
TESTFLAGS_RACE= -race ifeq ("amd64", $(GOARCH))
TESTFLAGS_RACE= -race
endif

View File

@ -1,5 +1,7 @@
#freebsd specific settings #freebsd specific settings
COMMANDS += containerd-shim COMMANDS += containerd-shim
# supports go test -race # amd64 supports go test -race
TESTFLAGS_RACE= -race ifeq ("amd64", $(GOARCH))
TESTFLAGS_RACE= -race
endif

View File

@ -1,5 +1,7 @@
#linux specific settings #linux specific settings
COMMANDS += containerd-shim COMMANDS += containerd-shim
# supports go test -race # amd64 supports go test -race
TESTFLAGS_RACE= -race ifeq ("amd64", $(GOARCH))
TESTFLAGS_RACE= -race
endif

View File

@ -5,5 +5,7 @@ FIX_PATH = $(subst /,\,$1)
BINARY_SUFFIX=".exe" BINARY_SUFFIX=".exe"
# supports go test -race # amd64 supports go test -race
TESTFLAGS_RACE= -race ifeq ("amd64", $(GOARCH))
TESTFLAGS_RACE= -race
endif