diff options
author | Dan Fredell <furtchet@gmail.com> | 2018-02-28 11:05:35 -0600 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2018-02-28 18:05:35 +0100 |
commit | 84719ef59aef2bdb34619feea03402ba199bf4a3 (patch) | |
tree | 74d033f1f7d14609c732fbc40663d3e9504e337e /Makefile | |
parent | 483f59d1102cd83a1547d59d997cf6571801e196 (diff) | |
download | prometheus_node_collector-84719ef59aef2bdb34619feea03402ba199bf4a3.tar.bz2 prometheus_node_collector-84719ef59aef2bdb34619feea03402ba199bf4a3.tar.xz prometheus_node_collector-84719ef59aef2bdb34619feea03402ba199bf4a3.zip |
On SunOS/ solaris/ SmartOS the go test flag of -rance isn't supported. (#762)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -30,17 +30,19 @@ DOCKERFILE ?= Dockerfile | |||
30 | 30 | ||
31 | STATICCHECK_IGNORE = | 31 | STATICCHECK_IGNORE = |
32 | 32 | ||
33 | ifeq ($(GOHOSTARCH),amd64) | ||
34 | # Only supported on amd64 | ||
35 | test-flags := -race | ||
36 | endif | ||
37 | |||
38 | ifeq ($(OS),Windows_NT) | 33 | ifeq ($(OS),Windows_NT) |
39 | OS_detected := Windows | 34 | OS_detected := Windows |
40 | else | 35 | else |
41 | OS_detected := $(shell uname -s) | 36 | OS_detected := $(shell uname -s) |
42 | endif | 37 | endif |
43 | 38 | ||
39 | ifeq ($(GOHOSTARCH),amd64) | ||
40 | ifneq ($(OS_detected),SunOS) | ||
41 | # Only supported on amd64 | ||
42 | test-flags := -race | ||
43 | endif | ||
44 | endif | ||
45 | |||
44 | ifeq ($(OS_detected), Linux) | 46 | ifeq ($(OS_detected), Linux) |
45 | test-e2e := test-e2e | 47 | test-e2e := test-e2e |
46 | else | 48 | else |