@@ -23,10 +23,14 @@ class TestLARGEBLOCKSRCreateDestroy:
2323 def test_create_sr_with_missing_device (self , host ):
2424 try_to_create_sr_with_missing_device ('largeblock' , 'LARGEBLOCK-local-SR-test' , host )
2525
26- def test_create_and_destroy_sr (self , host : Host , unused_4k_disks : dict [Host , list [Host .BlockDeviceInfo ]]) -> None :
26+ def test_create_and_destroy_sr (self , host : Host ,
27+ unused_4k_disks : dict [Host , list [Host .BlockDeviceInfo ]],
28+ image_format : str ) -> None :
2729 # Create and destroy tested in the same test to leave the host as unchanged as possible
2830 sr_disk = unused_4k_disks [host ][0 ]["name" ]
29- sr = host .sr_create ('largeblock' , "LARGEBLOCK-local-SR-test" , {'device' : '/dev/' + sr_disk }, verify = True )
31+ sr = host .sr_create ('largeblock' , "LARGEBLOCK-local-SR-test" ,
32+ {'device' : '/dev/' + sr_disk ,
33+ 'preferred-image-formats' : image_format }, verify = True )
3034 # import a VM in order to detect vm import issues here rather than in the vm_on_xfs_fixture used in
3135 # the next tests, because errors in fixtures break teardown
3236 vm = host .import_vm (vm_image ('mini-linux-x86_64-bios' ), sr_uuid = sr .uuid )
0 commit comments