[sheepdog] [PATCH stable-0.6 21/22] tests/functional/058: refine the test to catch more bug

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Aug 12 16:55:25 CEST 2013


From: Liu Yuan <namei.unix at gmail.com>

This found bug will be addressed by later patch

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
Reviewed-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 tests/functional/058     | 6 +++---
 tests/functional/058.out | 4 ----
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/tests/functional/058 b/tests/functional/058
index 3bbb789..d7d2e9e 100755
--- a/tests/functional/058
+++ b/tests/functional/058
@@ -15,12 +15,12 @@ status=1        # failure is the default!
 _cleanup
 
 for i in 0 1 2; do
-	_start_sheep $i
+	_start_sheep $i "-w size=200"
 done
 _wait_for_sheep 3
 _cluster_format
-$COLLIE vdi create test 100M -P
-_node_info
+$COLLIE vdi create test 100M
+dd if=/dev/zero | $COLLIE vdi write -w test
 qemu-io -c "discard 0 100m" sheepdog:test | _filter_qemu_io
 $COLLIE vdi check test
 for i in `seq 0 24`; do
diff --git a/tests/functional/058.out b/tests/functional/058.out
index 758a027..b8eb9a2 100644
--- a/tests/functional/058.out
+++ b/tests/functional/058.out
@@ -1,9 +1,5 @@
 QA output created by 058
 using backend plain store
-STORE	DATA	VDI	VMSTATE	ATTR	STALE
-0	25	1	0	0	0
-1	25	1	0	0	0
-2	25	1	0	0	0
 discard 104857600/104857600 bytes at offset 0
 100 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 finish check&repair test
-- 
1.8.1.2




More information about the sheepdog mailing list