From 31a8f8b83973867a50ac08106effb1bba3fdcb2d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 4 Oct 2016 22:42:30 +0200 Subject: tests: skip "go tool vet" if the command is not available "vet" is not availably by default on Go 1.4. --- test.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test.bash') diff --git a/test.bash b/test.bash index eb9c5c6..215c88f 100755 --- a/test.bash +++ b/test.bash @@ -13,4 +13,8 @@ go test ./... $* # The tests cannot to this themselves as they are run in parallel rm -Rf --one-file-system /tmp/gocryptfs-test-parent -go tool vet -all -shadow . +if go tool | grep vet > /dev/null ; then + go tool vet -all -shadow . +else + echo "\"go tool vet\" not available - skipping" +fi -- cgit v1.2.3