test.bash: don't let the test process inherit the lock file

This meant that dangling mounts (and gocryptfs processes) kept
the lock open.
This commit is contained in:
Jakob Unterwurzacher 2017-01-03 17:40:20 +01:00
parent 3e4b29634a
commit 2643dd0ea5

View File

@ -32,7 +32,8 @@ else
echo "\"go tool vet\" not available - skipping"
fi
go test ./... $*
# We don't want all the subprocesses holding the lock file open
go test ./... $* 200>&-
# The tests cannot to this themselves as they are run in parallel.
# Don't descend into possibly still mounted example filesystems.