aboutsummaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-04 22:42:30 +0200
committerJakob Unterwurzacher2016-10-04 22:42:30 +0200
commit31a8f8b83973867a50ac08106effb1bba3fdcb2d (patch)
treed6548e0a4075cbbcb6887bcfa2f149b49095b17f /test.bash
parent49c73f84f5f32821d02c81b3f307bdeeb4141fa1 (diff)
tests: skip "go tool vet" if the command is not available
"vet" is not availably by default on Go 1.4.
Diffstat (limited to 'test.bash')
-rwxr-xr-xtest.bash6
1 files changed, 5 insertions, 1 deletions
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