[sheepdog] [PATCH 2/2] tests: adopt 18-20 to new cache control semantics

Liu Yuan namei.unix at gmail.com
Wed Sep 19 09:36:07 CEST 2012


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

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

diff --git a/tests/018 b/tests/018
index cd2cfd7..964e468 100755
--- a/tests/018
+++ b/tests/018
@@ -16,7 +16,7 @@ status=1        # failure is the default!
 _cleanup
 
 for i in `seq 0 2`; do
-    _start_sheep $i "-w object:size=100"
+    _start_sheep $i "-w object:size=100:mode=writeback"
 done
 
 _wait_for_sheep "3"
diff --git a/tests/019 b/tests/019
index f3862fb..4a69c7d 100755
--- a/tests/019
+++ b/tests/019
@@ -25,7 +25,7 @@ $COLLIE cluster format -c 2
 
 $COLLIE vdi create test 4M
 
-dd if=/dev/urandom | $COLLIE vdi write test
+dd if=/dev/urandom | $COLLIE vdi write -w test
 
 for port in `seq 0 2`; do
     $COLLIE vdi read test -p 700$port | md5sum > /tmp/csum.$port
diff --git a/tests/020 b/tests/020
index e9943dd..a7413d2 100755
--- a/tests/020
+++ b/tests/020
@@ -25,7 +25,7 @@ $COLLIE cluster format -c 2
 
 $COLLIE vdi create test 40M
 
-dd if=/dev/urandom | $COLLIE vdi write test
+dd if=/dev/urandom | $COLLIE vdi write -w test
 
 # check cache size, should be 20 * 80%
 nr=`ls /tmp/sheepdog/0/cache/7c2b25 | wc -l`
-- 
1.7.12.84.gefa6462




More information about the sheepdog mailing list