[sheepdog] [PATCH v4 2/7] tests/047: add md test support

Liu Yuan namei.unix at gmail.com
Fri Apr 5 12:06:55 CEST 2013


From: Liu Yuan <tailai.ly at taobao.com>

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 tests/047   |   10 ++++++++--
 tests/group |    2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/047 b/tests/047
index 34b64f3..f45cad6 100755
--- a/tests/047
+++ b/tests/047
@@ -29,8 +29,14 @@ echo "hello" | $COLLIE vdi write test 0 512
 echo "sheepdog" | $COLLIE vdi write test 4M 512
 # corrupt the vdi...
 _kill_sheep 0
-rm $STORE/0/obj/807c2b2500000000
-rm $STORE/0/obj/007c2b25*
+if $md; then
+	rm $STORE/0/d2/807c2b2500000000
+	rm $STORE/0/d2/007c2b25*
+else
+	rm $STORE/0/obj/807c2b2500000000
+	rm $STORE/0/obj/007c2b25*
+fi
+
 # do the journal replay
 _start_sheep 0 "-j size=64"
 _wait_for_sheep 1
diff --git a/tests/group b/tests/group
index ed786cc..c82ddf9 100644
--- a/tests/group
+++ b/tests/group
@@ -60,7 +60,7 @@
 044 auto quick vdi md
 045 auto quick store md
 046 auto quick vdi md
-047 auto quick vdi
+047 auto quick vdi md
 048 auto quick collie
 049 auto quick cache md
 050 auto quick cluster md
-- 
1.7.9.5




More information about the sheepdog mailing list