Only test with -race using go latest

This commit is contained in:
Nick Craig-Wood 2017-06-19 08:07:50 +01:00
parent eaa717b88a
commit 54e37be591
1 changed files with 2 additions and 0 deletions

View File

@ -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