]> git.proxmox.com Git - mirror_qemu.git/commitdiff
iotests: specify some unsupported_imgopts for python iotests
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 23 Dec 2021 16:01:28 +0000 (17:01 +0100)
committerHanna Reitz <hreitz@redhat.com>
Tue, 1 Feb 2022 09:51:39 +0000 (10:51 +0100)
We are going to support IMGOPTS for python iotests. Still some iotests
will not work with common IMGOPTS used with bash iotests like
specifying refcount_bits and compat qcow2 options. So we
should define corresponding unsupported_imgopts for now.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211223160144.1097696-4-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
15 files changed:
tests/qemu-iotests/044
tests/qemu-iotests/065
tests/qemu-iotests/163
tests/qemu-iotests/165
tests/qemu-iotests/196
tests/qemu-iotests/242
tests/qemu-iotests/246
tests/qemu-iotests/254
tests/qemu-iotests/260
tests/qemu-iotests/274
tests/qemu-iotests/281
tests/qemu-iotests/303
tests/qemu-iotests/tests/migrate-bitmaps-postcopy-test
tests/qemu-iotests/tests/migrate-bitmaps-test
tests/qemu-iotests/tests/remove-bitmap-from-backing

index 64b18eb7c89f49c8fc7192dbb0e8bd5e4a810509..d696e6442ad5b595d16a61f5c0dd6d2603c773c4 100755 (executable)
@@ -117,4 +117,5 @@ class TestRefcountTableGrowth(iotests.QMPTestCase):
 
 if __name__ == '__main__':
     iotests.main(supported_fmts=['qcow2'],
-                 supported_protocols=['file'])
+                 supported_protocols=['file'],
+                 unsupported_imgopts=['refcount_bits'])
index 3c2ca27627f0d6343ba04c857b3853b66b3e8edb..dc7716275f0d5e8b6aeb572244fb6c7d77de24a6 100755 (executable)
@@ -139,4 +139,5 @@ TestQMP = None
 
 if __name__ == '__main__':
     iotests.main(supported_fmts=['qcow2'],
-                 supported_protocols=['file'])
+                 supported_protocols=['file'],
+                 unsupported_imgopts=['refcount_bits'])
index dedce8ef4322d3cec0303049b280cd0efdb75e2f..b8bfc95358e4652c199655030c8a3472b580b989 100755 (executable)
@@ -169,4 +169,5 @@ ShrinkBaseClass = None
 
 if __name__ == '__main__':
     iotests.main(supported_fmts=['raw', 'qcow2'],
-                 supported_protocols=['file'])
+                 supported_protocols=['file'],
+                 unsupported_imgopts=['compat'])
index ce499946b842e71f45c7b24ca16271a10ffd5a44..e3ef28e2ee84277ff7bbe65d5fff33a31c2a6bce 100755 (executable)
@@ -157,4 +157,5 @@ class TestPersistentDirtyBitmap(iotests.QMPTestCase):
 
 if __name__ == '__main__':
     iotests.main(supported_fmts=['qcow2'],
-                 supported_protocols=['file'])
+                 supported_protocols=['file'],
+                 unsupported_imgopts=['compat'])
index 2451515094f2e582dc8dbe838e602229a00b7fd5..76509a5ad1c541f572ab9c918046cf2404771ea9 100755 (executable)
@@ -65,4 +65,5 @@ class TestInvalidateAutoclear(iotests.QMPTestCase):
 
 if __name__ == '__main__':
     iotests.main(supported_fmts=['qcow2'],
-                 supported_protocols=['file'])
+                 supported_protocols=['file'],
+                 unsupported_imgopts=['compat'])
index a9b27668c2757711fc3f21db87d4cc5925eec12f..96a30152b04a8fba7eed2514a48c2adef1a80640 100755 (executable)
@@ -26,7 +26,8 @@ from iotests import qemu_img_create, qemu_io, qemu_img_pipe, \
     file_path, img_info_log, log, filter_qemu_io
 
 iotests.script_initialize(supported_fmts=['qcow2'],
-                          supported_protocols=['file'])
+                          supported_protocols=['file'],
+                          unsupported_imgopts=['refcount_bits', 'compat'])
 
 disk = file_path('disk')
 chunk = 256 * 1024
index 5932a0e8a97bdd5975a4bc0813f9b8e299e4fadf..b009a78397752bdd60bf2ec34af5f7c9a838daab 100755 (executable)
@@ -23,7 +23,8 @@
 import iotests
 from iotests import log
 
-iotests.script_initialize(supported_fmts=['qcow2'])
+iotests.script_initialize(supported_fmts=['qcow2'],
+                          unsupported_imgopts=['compat'])
 size = 64 * 1024 * 1024 * 1024
 gran_small = 32 * 1024
 gran_large = 128 * 1024
index 108bf5f894c6b3328c144a5de1eea280e22ba3b4..7ea098818cf0a39c0a624989cdc8cfe5be22503b 100755 (executable)
@@ -22,7 +22,8 @@
 import iotests
 from iotests import qemu_img_create, file_path, log
 
-iotests.script_initialize(supported_fmts=['qcow2'])
+iotests.script_initialize(supported_fmts=['qcow2'],
+                          unsupported_imgopts=['compat'])
 
 disk, top = file_path('disk', 'top')
 size = 1024 * 1024
index 2ec64a9b9952cd26ac7c795fca36d8209396d345..c2133f998010bef3111abb98f0bea81afc978873 100755 (executable)
@@ -23,7 +23,8 @@ import iotests
 from iotests import qemu_img_create, file_path, log, filter_qmp_event
 
 iotests.script_initialize(
-    supported_fmts=['qcow2']
+    supported_fmts=['qcow2'],
+    unsupported_imgopts=['compat']
 )
 
 base, top = file_path('base', 'top')
index caab008e0737ba5d88e2ae46bc11c178d0445756..080a90f10f7af42c09e380b5953b0a51a1c21535 100755 (executable)
@@ -23,7 +23,8 @@
 import iotests
 
 iotests.script_initialize(supported_fmts=['qcow2'],
-                          supported_platforms=['linux'])
+                          supported_platforms=['linux'],
+                          unsupported_imgopts=['refcount_bits', 'compat'])
 
 size_short = 1 * 1024 * 1024
 size_long = 2 * 1024 * 1024
index 956698083f03a7d80f2076cc18c113e36f411a0b..318e33393919f2b89295700bbf0568c29a11c58e 100755 (executable)
@@ -245,4 +245,5 @@ class TestBlockdevBackupAbort(iotests.QMPTestCase):
 
 if __name__ == '__main__':
     iotests.main(supported_fmts=['qcow2'],
-                 supported_protocols=['file'])
+                 supported_protocols=['file'],
+                 unsupported_imgopts=['compat'])
index 425544c064d247af86925696bf6da34c0666d2b8..475cb5428db4f047b7db63776ca0da61591241a7 100755 (executable)
@@ -23,7 +23,8 @@ import iotests
 import subprocess
 from iotests import qemu_img_create, qemu_io, file_path, log, filter_qemu_io
 
-iotests.script_initialize(supported_fmts=['qcow2'])
+iotests.script_initialize(supported_fmts=['qcow2'],
+                          unsupported_imgopts=['refcount_bits', 'compat'])
 
 disk = file_path('disk')
 chunk = 1024 * 1024
index 00ebb5c2516fb7a6b9ee5c7cceaad994023415d8..fc9c4b4ef411dc93e1abba0e58d2cbb0b122731d 100755 (executable)
@@ -272,4 +272,5 @@ class TestDirtyBitmapPostcopyMigration(iotests.QMPTestCase):
 
 
 if __name__ == '__main__':
-    iotests.main(supported_fmts=['qcow2'])
+    iotests.main(supported_fmts=['qcow2'],
+                 unsupported_imgopts=['compat'])
index c23df3d75c7fd0efc5a4c79aa1f2e6c0a1abac51..59f33575805c79a2ea24157fdb03362637a0cf76 100755 (executable)
@@ -307,7 +307,8 @@ def main() -> None:
 
     iotests.main(
         supported_fmts=['qcow2'],
-        supported_protocols=['file']
+        supported_protocols=['file'],
+        unsupported_imgopts=['compat']
     )
 
 
index 8d48fc0f3ce158182733d744b365c412f7050ea5..3c397b08ea439d6d4c9da76374c0cd7a42abced4 100755 (executable)
@@ -21,7 +21,8 @@
 import iotests
 from iotests import log, qemu_img_create, qemu_img, qemu_img_pipe
 
-iotests.script_initialize(supported_fmts=['qcow2'])
+iotests.script_initialize(supported_fmts=['qcow2'],
+                          unsupported_imgopts=['compat'])
 
 top, base = iotests.file_path('top', 'base')
 size = '1M'