[sheepdog] [PATCH stable-0.6 2/2] tests/functional: unmount loopback devices before cleaning directories

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Tue Aug 27 12:16:12 CEST 2013


Some tests (e.g. 011) make loopback devices and mount them in their
directories. These devices let cleaning fail. This patch let the check
script unmount them after succeeding.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 tests/functional/check |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/functional/check b/tests/functional/check
index f7e4bd1..c9125b5 100755
--- a/tests/functional/check
+++ b/tests/functional/check
@@ -518,6 +518,7 @@ do
 			echo "$seq `expr $stop - $start`" >>$tmp.time
 			if ! $keep_passed
 			then
+			    _cleanup
 			    rm -rf $STORE
 			fi
 		    fi
-- 
1.7.10.4




More information about the sheepdog mailing list