]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Makefile: have 'make tmpfstest' unmount and remove stale temp directories.
authorDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Wed, 12 Dec 2012 07:19:47 +0000 (07:19 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 10 Jul 2015 04:23:03 +0000 (05:23 +0100)
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
Makefile

index 6943b830d6cef91c2113b1703bfed5df2b2d65ef..03599f5432d326a238a12f7f1bbfc628b695ced4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -84,6 +84,8 @@ _tmpfstest: make-version
        -time $(TAHOE) debug trial --rterrors '--temp-directory=$(TMPDIR)/_trial_temp' $(TRIALARGS) $(TEST)
        sudo umount '$(TMPDIR)'
        rmdir '$(TMPDIR)'
+       -sudo umount tmp.* 2>/dev/null
+       -rmdir --ignore-fail-on-non-empty tmp.* 2>/dev/null
 
 
 # code coverage: install the "coverage" package from PyPI, do "make test-coverage" to