summaryrefslogtreecommitdiff
path: root/CHANGELOG
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-08-14 16:27:35 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-08-14 16:29:47 -0400
commitcb91d1539e4f7d935c5106dbf54a7d58b5f297d6 (patch)
tree5a4f5f580a46526aa2b0280754b6feb203d5039d /CHANGELOG
parent6c4c1a9bccfaa94525f343153b179c2170293686 (diff)
test: Avoid most situations involving failure to delete test directories
By forking a worker process and only deleting the test directory once it exits. This way, if a test leaves files open, they'll get closed when the worker exits, so avoiding failure to delete open files on Windows, and failure to delete directories due to NFS lock files. If a test leaves a git worker process running, the closed pipes should cause the worker to exit too, also avoiding the problem there. The 10 second sleep ought to give plenty of time for such worker processes to exit, although this is of course a race. Finally, even if test directory fails to be deleted still, it won't appear as if the last test in the test suite failed; the error will be displayed at the very end. This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'CHANGELOG')
-rw-r--r--CHANGELOG3
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index a568407e2..0f88c10fd 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -7,6 +7,9 @@ git-annex (6.20170521) UNRELEASED; urgency=medium
branch. This is a dangerous environment variable; use with caution.
* Fix a git-annex test failure when run on NFS due to NFS lock files
preventing directory removal.
+ * test: Avoid most situations involving failure to delete test
+ directories, by forking a worker process and only deleting the test
+ directory once it exits.
-- Joey Hess <id@joeyh.name> Sat, 17 Jun 2017 13:02:24 -0400