diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-08-14 16:27:35 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-08-14 16:29:47 -0400 |
commit | cb91d1539e4f7d935c5106dbf54a7d58b5f297d6 (patch) | |
tree | 5a4f5f580a46526aa2b0280754b6feb203d5039d /doc/bugs/windows_ssh_webapp_password_entry_broken | |
parent | 6c4c1a9bccfaa94525f343153b179c2170293686 (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 'doc/bugs/windows_ssh_webapp_password_entry_broken')
0 files changed, 0 insertions, 0 deletions