[sheepdog] [PATCH 5/6] tests: filter repeated lines to avoid double umount call

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Wed Sep 19 06:25:44 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 tests/common.rc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/common.rc b/tests/common.rc
index 71134bf..736d941 100644
--- a/tests/common.rc
+++ b/tests/common.rc
@@ -325,7 +325,7 @@ _make_device()
 
 _cleanup_devices()
 {
-    for d in `mount | grep -o $STORE/.`; do
+    for d in `mount | grep -o $STORE/. | sort | uniq`; do
         umount -l $d
         rm -f $d.img
     done
-- 
1.7.2.5




More information about the sheepdog mailing list