aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ac35334a7..18e777b9e 100644
--- a/Makefile
+++ b/Makefile
@@ -289,7 +289,9 @@ test:
env CGO_ENABLED=1 $(GO) test -short ./...
test_race:
- env CGO_ENABLED=1 $(GO) test -short -race -bench=.* -benchtime=.2s ./...
+ $(GO) test -race; if test $$? -ne 2; then \
+ env CGO_ENABLED=1 $(GO) test -short -race -bench=.* -benchtime=.2s ./... ;\
+ fi
clean:
rm -rf ./bin/