tests: skip "go tool vet" if the command is not available

"vet" is not availably by default on Go 1.4.
This commit is contained in:
Jakob Unterwurzacher 2016-10-04 22:42:30 +02:00
parent 49c73f84f5
commit 31a8f8b839

View File

@ -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
if go tool | grep vet > /dev/null ; then
go tool vet -all -shadow .
else
echo "\"go tool vet\" not available - skipping"
fi