From c701cab691b251fef38121c3cd7e4ce6930f4518 Mon Sep 17 00:00:00 2001
From: Daira Hopwood <daira@jacaranda.org>
Date: Wed, 12 Dec 2012 07:19:47 +0000
Subject: [PATCH] Makefile: have 'make tmpfstest' unmount and remove stale temp
 directories.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 1ee1ae5f..12046613 100644
--- a/Makefile
+++ b/Makefile
@@ -85,6 +85,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
-- 
2.45.2