From 54e37be591f0be0de113c573f840b2afd041452f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 19 Jun 2017 08:07:50 +0100 Subject: [PATCH] Only test with -race using go latest --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 96067ef00..16cda556d 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,9 @@ test: rclone # Quick test quicktest: RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) $(GO_FILES) +ifdef GO_LATEST RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) -cpu=2 -race $(GO_FILES) +endif # Do source code quality checks check: rclone