test.bash: disable result caching

Go 1.10 has introduced test result caching and
enabled it by default.

This does not work properly for our integration
tests because they test the compiled binary and
do not have a source level dependency on the
gocryptfs code.

Disable caching.
This commit is contained in:
Jakob Unterwurzacher 2018-02-26 23:18:12 +01:00
parent 1ec5ccddd4
commit 5fcfd30ddc

View File

@ -38,8 +38,12 @@ else
go tool vet -all -shadow . go tool vet -all -shadow .
fi fi
# We don't want all the subprocesses holding the lock file open # We don't want all the subprocesses
go test ./... $* 200>&- # holding the lock file open
# vvvvv
go test -count 1 ./... $* 200>&-
# ^^^^^^^^
# Disable result caching
# The tests cannot to this themselves as they are run in parallel. # The tests cannot to this themselves as they are run in parallel.
# Don't descend into possibly still mounted example filesystems. # Don't descend into possibly still mounted example filesystems.