]> Git Repo - qemu.git/blobdiff - tests/qemu-iotests/044
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[qemu.git] / tests / qemu-iotests / 044
index 9ec3dba734a224ada0caec0d15427be8b8bb0871..a5ee9a7ded3bf1f734322db80689aeeb0ee9a676 100755 (executable)
@@ -1,4 +1,5 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
+# group: rw
 #
 # Tests growing a large refcount table.
 #
@@ -23,14 +24,11 @@ import os
 import qcow2
 from qcow2 import QcowHeader
 import iotests
-from iotests import qemu_img, qemu_img_verbose, qemu_io
+from iotests import qemu_img, qemu_img_log, qemu_io
 import struct
 import subprocess
 import sys
 
-if sys.version_info.major == 2:
-    range = xrange
-
 test_img = os.path.join(iotests.test_dir, 'test.img')
 
 class TestRefcountTableGrowth(iotests.QMPTestCase):
@@ -114,8 +112,11 @@ class TestRefcountTableGrowth(iotests.QMPTestCase):
 
     def test_grow_refcount_table(self):
         qemu_io('-c', 'write 3800M 1M', test_img)
-        qemu_img_verbose('check' , test_img)
+        qemu_img_log('check' , test_img)
         pass
 
 if __name__ == '__main__':
-    iotests.main(supported_fmts=['qcow2'])
+    iotests.activate_logging()
+    iotests.main(supported_fmts=['qcow2'],
+                 supported_protocols=['file'],
+                 unsupported_imgopts=['refcount_bits'])
This page took 0.021205 seconds and 4 git commands to generate.