]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/qemu-iotests/260
build: Remove --enable-gprof
[mirror_qemu.git] / tests / qemu-iotests / 260
index 4f6082c9d22d6a246cdc4b39926cf8fc26690436..c2133f998010bef3111abb98f0bea81afc978873 100755 (executable)
@@ -1,4 +1,5 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
+# group: rw quick
 #
 # Tests for temporary external snapshot when we have bitmaps.
 #
 import iotests
 from iotests import qemu_img_create, file_path, log, filter_qmp_event
 
-iotests.verify_image_format(supported_fmts=['qcow2'])
+iotests.script_initialize(
+    supported_fmts=['qcow2'],
+    unsupported_imgopts=['compat']
+)
 
 base, top = file_path('base', 'top')
 size = 64 * 1024 * 3
@@ -29,8 +33,9 @@ size = 64 * 1024 * 3
 
 def print_bitmap(msg, vm):
     result = vm.qmp('query-block')['return'][0]
-    if 'dirty-bitmaps' in result:
-        bitmap = result['dirty-bitmaps'][0]
+    info = result.get("inserted", {})
+    if 'dirty-bitmaps' in info:
+        bitmap = info['dirty-bitmaps'][0]
         log('{}: name={} dirty-clusters={}'.format(msg, bitmap['name'],
             bitmap['count'] // 64 // 1024))
     else: