diff options
author | Jakob Unterwurzacher | 2016-10-04 22:42:30 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-04 22:42:30 +0200 |
commit | 31a8f8b83973867a50ac08106effb1bba3fdcb2d (patch) | |
tree | d6548e0a4075cbbcb6887bcfa2f149b49095b17f /test.bash | |
parent | 49c73f84f5f32821d02c81b3f307bdeeb4141fa1 (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-x | test.bash | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |