aboutsummaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-02-26 23:18:12 +0100
committerJakob Unterwurzacher2018-02-26 23:26:57 +0100
commit5fcfd30ddc144f39e47d4259151f633a34f0c082 (patch)
treefad448e03d6a0b902950410739f026e10fbcaa6c /test.bash
parent1ec5ccddd471d3ec4d9a9015a3c3e97f0108a423 (diff)
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.
Diffstat (limited to 'test.bash')
-rwxr-xr-xtest.bash8
1 files changed, 6 insertions, 2 deletions
diff --git a/test.bash b/test.bash
index 388ee9c..ec46d9b 100755
--- a/test.bash
+++ b/test.bash
@@ -38,8 +38,12 @@ else
go tool vet -all -shadow .
fi
-# We don't want all the subprocesses holding the lock file open
-go test ./... $* 200>&-
+# We don't want all the subprocesses
+# 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.
# Don't descend into possibly still mounted example filesystems.