summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/055
diff options
context:
space:
mode:
authorIan Main <imain@redhat.com>2013-07-26 11:39:05 -0700
committerKevin Wolf <kwolf@redhat.com>2013-07-26 22:01:31 +0200
commite3409362bd64731e042c9d001e43cc1d13d2df5d (patch)
tree6b866fb7d07dda9b8ac2aa27e7adf80377b8e3bc /tests/qemu-iotests/055
parentfc5d3f843250c9d3bfa2bcfdb7369f4753a49f0e (diff)
downloadqemu-e3409362bd64731e042c9d001e43cc1d13d2df5d.tar.gz
Add tests for sync modes 'TOP' and 'NONE'
This patch adds tests for sync modes top and none. Test for 'TOP' is separated out as it requires a backing file. Also added a test for invalid format. Signed-off-by: Ian Main <imain@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/055')
-rwxr-xr-xtests/qemu-iotests/0556
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055
index c66f8dbd7d..44bb025687 100755
--- a/tests/qemu-iotests/055
+++ b/tests/qemu-iotests/055
@@ -97,6 +97,12 @@ class TestSingleDrive(iotests.QMPTestCase):
target=target_img, sync='full', mode='existing')
self.assert_qmp(result, 'error/class', 'GenericError')
+ def test_invalid_format(self):
+ result = self.vm.qmp('drive-backup', device='drive0',
+ target=target_img, sync='full',
+ format='spaghetti-noodles')
+ self.assert_qmp(result, 'error/class', 'GenericError')
+
def test_device_not_found(self):
result = self.vm.qmp('drive-backup', device='nonexistent',
target=target_img, sync='full')