thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-iotests-055-skip-vmdk-target-tests-if-vmdk-is-not-wh.patch

ddf19c
From 9a0ca4797cbd029dab9209d88f8c81b78ded8fd0 Mon Sep 17 00:00:00 2001
ddf19c
From: Kevin Wolf <kwolf@redhat.com>
ddf19c
Date: Wed, 3 Jun 2020 16:03:18 +0100
ddf19c
Subject: [PATCH 19/26] iotests/055: skip vmdk target tests if vmdk is not
ddf19c
 whitelisted
ddf19c
ddf19c
RH-Author: Kevin Wolf <kwolf@redhat.com>
ddf19c
Message-id: <20200603160325.67506-5-kwolf@redhat.com>
ddf19c
Patchwork-id: 97101
ddf19c
O-Subject: [RHEL-AV-8.2.1 qemu-kvm PATCH v2 04/11] iotests/055: skip vmdk target tests if vmdk is not whitelisted
ddf19c
Bugzilla: 1778593
ddf19c
RH-Acked-by: Eric Blake <eblake@redhat.com>
ddf19c
RH-Acked-by: Max Reitz <mreitz@redhat.com>
ddf19c
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
ddf19c
ddf19c
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
ddf19c
ddf19c
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
ddf19c
Message-Id: <20200430124713.3067-7-vsementsov@virtuozzo.com>
ddf19c
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ddf19c
(cherry picked from commit 761cd2e791eae38c3d08ea5f83309ce58bb85ff7)
ddf19c
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ddf19c
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ddf19c
---
ddf19c
 tests/qemu-iotests/055 | 4 ++++
ddf19c
 1 file changed, 4 insertions(+)
ddf19c
ddf19c
diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055
ddf19c
index 8666601..c9cdc06 100755
ddf19c
--- a/tests/qemu-iotests/055
ddf19c
+++ b/tests/qemu-iotests/055
ddf19c
@@ -566,6 +566,10 @@ class TestCompressedToQcow2(iotests.QMPTestCase):
ddf19c
 class TestCompressedToVmdk(TestCompressedToQcow2):
ddf19c
     target_fmt = {'type': 'vmdk', 'args': ('-o', 'subformat=streamOptimized')}
ddf19c
 
ddf19c
+    @iotests.skip_if_unsupported(['vmdk'])
ddf19c
+    def setUp(self):
ddf19c
+        pass
ddf19c
+
ddf19c
 
ddf19c
 if __name__ == '__main__':
ddf19c
     iotests.main(supported_fmts=['raw', 'qcow2'],
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c