diff mbox

[RFC,v3,6/6] qemu-iotests: s390x: fix test 055

Message ID 1423042352-361-7-git-send-email-chenxg@linux.vnet.ibm.com
State New
Headers show

Commit Message

Xiao Guang Chen Feb. 4, 2015, 9:32 a.m. UTC
From: Mao Chuan Li <maochuan@linux.vnet.ibm.com>

There is no such device 'ide-cd' defined on the s390 platform, so
test_medium_not_found() test is skipped.

Reviewed-by:   Michael Mueller <mimu@linux.vnet.ibm.com>
Signed-off-by: Mao Chuan Li  <maochuan@linux.vnet.ibm.com>
---
 tests/qemu-iotests/055 | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055
index 451b67d..5cf487b 100755
--- a/tests/qemu-iotests/055
+++ b/tests/qemu-iotests/055
@@ -90,6 +90,9 @@  class TestSingleDrive(iotests.QMPTestCase):
                         'target image does not match source after backup')
 
     def test_medium_not_found(self):
+        if iotests.qemu_default_machine == 's390-virtio':
+	    return
+
         result = self.vm.qmp('drive-backup', device='ide1-cd0',
                              target=target_img, sync='full')
         self.assert_qmp(result, 'error/class', 'GenericError')
@@ -252,6 +255,9 @@  class TestSingleTransaction(iotests.QMPTestCase):
                         'target image does not match source after backup')
 
     def test_medium_not_found(self):
+        if iotests.qemu_default_machine == 's390-virtio':
+	    return
+
         result = self.vm.qmp('transaction', actions=[{
                 'type': 'drive-backup',
                 'data': { 'device': 'ide1-cd0',