[sheepdog] [PATCH 3/4] test/039: add test of rollbacking to the non-snapshot vdi
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Mar 11 06:39:13 CET 2013
We cannot rollback to the current vdi. This patch adds check for it.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
tests/039 | 3 +++
tests/039.out | 2 ++
2 files changed, 5 insertions(+)
diff --git a/tests/039 b/tests/039
index f31a413..81eb853 100755
--- a/tests/039
+++ b/tests/039
@@ -57,6 +57,9 @@ $COLLIE vdi snapshot test -s snap3
qemu-io -c "write 0 512 -P 4" sheepdog:test | _filter_qemu_io
$COLLIE vdi snapshot test -s snap4
+# this fails since snap id 5 is not a snapshot
+$COLLIE vdi rollback test -s 5
+
$COLLIE vdi rollback test -s snap3
qemu-io -c "read 0 512 -P 3" sheepdog:test | _filter_qemu_io
$COLLIE vdi tree | _filter_short_date
diff --git a/tests/039.out b/tests/039.out
index b17b696..d51b867 100644
--- a/tests/039.out
+++ b/tests/039.out
@@ -41,6 +41,8 @@ wrote 512/512 bytes at offset 0
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 512/512 bytes at offset 0
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Cannot get VDI info for test 5 : Invalid parameters
+Failed to open VDI test
read 512/512 bytes at offset 0
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
test---[DATE]-+-[DATE]
--
1.8.1.3.566.gaa39828
More information about the sheepdog
mailing list