diff options
author | Ian Main <imain@redhat.com> | 2013-07-26 11:39:05 -0700 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-07-26 22:01:31 +0200 |
commit | e3409362bd64731e042c9d001e43cc1d13d2df5d (patch) | |
tree | 6b866fb7d07dda9b8ac2aa27e7adf80377b8e3bc /tests/qemu-iotests/055 | |
parent | fc5d3f843250c9d3bfa2bcfdb7369f4753a49f0e (diff) |
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-x | tests/qemu-iotests/055 | 6 |
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') |