From 84719ef59aef2bdb34619feea03402ba199bf4a3 Mon Sep 17 00:00:00 2001 From: Dan Fredell Date: Wed, 28 Feb 2018 11:05:35 -0600 Subject: [PATCH] On SunOS/ solaris/ SmartOS the go test flag of -rance isn't supported. (#762) --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 32b53637..ce2f58d6 100644 --- a/Makefile +++ b/Makefile @@ -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