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:
parent
49c73f84f5
commit
31a8f8b839
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user