@@ -120,7 +120,6 @@ def pytest_collection_modifyitems(items, config):
120
120
'windows_vm' ,
121
121
'hostA2' ,
122
122
'hostB1' ,
123
- 'sr_disk_4k' ,
124
123
'unused_disks' ,
125
124
'unused_4k_disks' ,
126
125
]
@@ -397,30 +396,6 @@ def unused_4k_disks(unused_disks: dict[Host, list[DiskDevName]]
397
396
logging .debug ("available 4k disks collected: %s" , {host .hostname_or_ip : value for host , value in ret .items ()})
398
397
yield ret
399
398
400
- @pytest .fixture (scope = 'session' )
401
- def sr_disk_4k (pytestconfig , host : Host ) -> Generator [DiskDevName ]:
402
- """
403
- Disk DEVICE NAME with 4KB blocksize available on FIRST POOL MASTER.
404
-
405
- Abort if not exactly one --sr_disk. If --sr_disk=auto take any, else
406
- return requested device (abort if not present).
407
- """
408
- disks = pytestconfig .getoption ("sr_disk_4k" )
409
- if len (disks ) != 1 :
410
- pytest .fail ("This test requires exactly one --sr-disks-4k parameter" )
411
- disk = disks [0 ]
412
- if disk == "auto" :
413
- logging .info (">> Check for the presence of a free 4KiB block device on the master host" )
414
- disks = host .available_disks (4096 )
415
- assert len (disks ) > 0 , "a free 4KiB block device is required on the master host"
416
- disk = disks [0 ]
417
- logging .info (f">> Found free 4KiB block device(s) on hostA1: { ' ' .join (disks )} . Using { disk } ." )
418
- else :
419
- logging .info (f">> Check that 4KiB block device { disk } is available on the master host" )
420
- assert disk in host .available_disks (4096 ), \
421
- f"4KiB block device { disk } must be available for use on master host"
422
- yield disk
423
-
424
399
@pytest .fixture (scope = 'session' )
425
400
def pool_with_unused_disk (host : Host , unused_disks : dict [Host , list [DiskDevName ]]) -> Pool :
426
401
for h in host .pool .hosts :
0 commit comments