diff options
author | Bo Tu <tubo@linux.vnet.ibm.com> | 2015-07-03 15:28:48 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-09-04 20:59:48 +0200 |
commit | d8683155fa76cabff112271771e43e21034ff2ba (patch) | |
tree | 885aae24e1a0a16485c3464e679d224131aa5a59 /tests/qemu-iotests/041 | |
parent | 2711fd33a4b18c5e35a6f7efe57b5d868def829e (diff) |
qemu-iotests: s390x: fix test 041 and 055
There is no 'ide-cd' device defined on non-pc platform, so
test_medium_not_found() test should be skipped.
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Michael Mueller <mimu@linux.vnet.ibm.com>
Reviewed-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Signed-off-by: Xiao Guang Chen <chenxg@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/041')
-rwxr-xr-x | tests/qemu-iotests/041 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041 index 3d46ed705b..de8ea1588b 100755 --- a/tests/qemu-iotests/041 +++ b/tests/qemu-iotests/041 @@ -167,6 +167,9 @@ class TestSingleDrive(iotests.QMPTestCase): 'target image does not match source after mirroring') def test_medium_not_found(self): + if iotests.qemu_default_machine != 'pc': + return + result = self.vm.qmp('drive-mirror', device='ide1-cd0', sync='full', target=target_img) self.assert_qmp(result, 'error/class', 'GenericError') @@ -831,6 +834,9 @@ class TestRepairQuorum(iotests.QMPTestCase): if not self.has_quorum(): return + if iotests.qemu_default_machine != 'pc': + return + result = self.vm.qmp('drive-mirror', device='ide1-cd0', sync='full', node_name='repair0', replaces='img1', |