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

View File

@ -38,7 +38,9 @@ test: rclone
# Quick test # Quick test
quicktest: quicktest:
RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) $(GO_FILES) RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) $(GO_FILES)
ifdef GO_LATEST
RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) -cpu=2 -race $(GO_FILES) RCLONE_CONFIG="/notfound" go test $(BUILDTAGS) -cpu=2 -race $(GO_FILES)
endif
# Do source code quality checks # Do source code quality checks
check: rclone check: rclone