Skip to content

Commit

Permalink
On SunOS/ solaris/ SmartOS the go test flag of -rance isn't supported. (
Browse files Browse the repository at this point in the history
  • Loading branch information
dfredell authored and discordianfish committed Feb 28, 2018
1 parent 483f59d commit 84719ef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ DOCKERFILE ?= Dockerfile

STATICCHECK_IGNORE =

ifeq ($(GOHOSTARCH),amd64)
# Only supported on amd64
test-flags := -race
endif

ifeq ($(OS),Windows_NT)
OS_detected := Windows
else
OS_detected := $(shell uname -s)
endif

ifeq ($(GOHOSTARCH),amd64)
ifneq ($(OS_detected),SunOS)
# Only supported on amd64
test-flags := -race
endif
endif

ifeq ($(OS_detected), Linux)
test-e2e := test-e2e
else
Expand Down

0 comments on commit 84719ef

Please sign in to comment.