]> 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>
Wed, 9 Apr 2014 00:33:54 +0000 (01:33 +0100)
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
Makefile

index eb9c701d876818b809176c17e3915bbdfbb81786..a425ffb6aee31d1154ab814c23f1c5da1520ed29 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,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
 # quicktest-coverage" to do a unit test run with coverage-gathering enabled,