aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-03-31 15:16:20 +0200
committerJakob Unterwurzacher2019-03-31 15:16:20 +0200
commit3b18e546fc43c13b6ad7d9ad7273594ef019ac73 (patch)
tree38c6627595c24b9396b933bc0d7a2d829030d65c
parent8f2723b387fd3a4f575109a42d7c91059ebfe3fa (diff)
test.bash: pass flags on to "go vet"
Fixes this problem when openssl headers are not installed: $ ./test-without-openssl.bash gocryptfs v1.7-11-g8f2723b without_openssl; go-fuse v1.0.0-133-gcc423d1; 2019-03-31 go1.12.1 Package libcrypto was not found in the pkg-config search path. Perhaps you should add the directory containing `libcrypto.pc' to the PKG_CONFIG_PATH environment variable No package 'libcrypto' found pkg-config: exit status 1
-rwxr-xr-xtest.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.bash b/test.bash
index 2cdaccf..bb77a86 100755
--- a/test.bash
+++ b/test.bash
@@ -48,7 +48,7 @@ if ! go tool | grep vet > /dev/null ; then
elif [[ -d vendor ]] ; then
echo "vendor directory exists, skipping 'go tool vet'"
else
- go vet .
+ go vet "$@" .
fi
# We don't want all the subprocesses