From: David-Sarah Hopwood <david-sarah@jacaranda.org>
Date: Wed, 12 Dec 2012 07:19:47 +0000 (+0000)
Subject: Makefile: have 'make tmpfstest' unmount and remove stale temp directories.
X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/frontends/vdrive?a=commitdiff_plain;h=b7b15e7cf397084177d394110e8dfde82b257cab;p=tahoe-lafs%2Ftahoe-lafs.git

Makefile: have 'make tmpfstest' unmount and remove stale temp directories.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
---

diff --git a/Makefile b/Makefile
index 6943b830..03599f54 100644
--- 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