aboutsummaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-12-10 14:53:04 +0100
committerJakob Unterwurzacher2016-12-10 14:53:04 +0100
commite1833fa26a2a42e61aeff6f6e350714133dee378 (patch)
treeaa3b514245f652f610d6df7de32e2ed1f475d17e /test.bash
parent967e7bd125bf04e2b72fba90ee8f6055d739a969 (diff)
test.bash: call vet early
Diffstat (limited to 'test.bash')
-rwxr-xr-xtest.bash12
1 files changed, 6 insertions, 6 deletions
diff --git a/test.bash b/test.bash
index 892e6c2..1f90b88 100755
--- a/test.bash
+++ b/test.bash
@@ -26,18 +26,18 @@ done
source build-without-openssl.bash
source build.bash
-go test ./... $*
-
-# The tests cannot to this themselves as they are run in parallel.
-# Don't descend into possibly still mounted example filesystems.
-rm -Rf --one-file-system $TESTDIR
-
if go tool | grep vet > /dev/null ; then
go tool vet -all -shadow .
else
echo "\"go tool vet\" not available - skipping"
fi
+go test ./... $*
+
+# The tests cannot to this themselves as they are run in parallel.
+# Don't descend into possibly still mounted example filesystems.
+rm -Rf --one-file-system $TESTDIR
+
if grep -R "panic(" internal ; then
echo "Please use log.Panic instead of naked panic!"
exit 1