@@ -129,7 +129,6 @@ def pytest_collection_modifyitems(items, config):
129
129
'windows_vm' ,
130
130
'hostA2' ,
131
131
'hostB1' ,
132
- 'sr_disk' ,
133
132
'sr_disk_4k' ,
134
133
'unused_512B_disks' ,
135
134
]
@@ -404,30 +403,6 @@ def unused_512B_disks(disks: dict[Host, list[Host.BlockDeviceInfo]]
404
403
logging .debug ("available disks collected: %s" , {host .hostname_or_ip : value for host , value in ret .items ()})
405
404
return ret
406
405
407
- @pytest .fixture (scope = 'session' )
408
- def sr_disk (pytestconfig , host : Host ) -> Generator [DiskDevName ]:
409
- """
410
- Disk DEVICE NAME available on FIRST POOL MASTER.
411
-
412
- Abort if not exactly one --sr_disk. If --sr_disk=auto take any, else
413
- return requested device (abort if not present).
414
- """
415
- disks = pytestconfig .getoption ("sr_disk" )
416
- if len (disks ) != 1 :
417
- pytest .fail ("This test requires exactly one --sr-disk parameter" )
418
- disk = disks [0 ]
419
- if disk == "auto" :
420
- logging .info (">> Check for the presence of a free disk device on the master host" )
421
- disks = host .available_disks ()
422
- assert len (disks ) > 0 , "a free disk device is required on the master host"
423
- disk = disks [0 ]
424
- logging .info (f">> Found free disk device(s) on hostA1: { ' ' .join (disks )} . Using { disk } ." )
425
- else :
426
- logging .info (f">> Check that disk or block device { disk } is available on the master host" )
427
- assert disk in host .available_disks (), \
428
- f"disk or block device { disk } is either not present or already used on master host"
429
- yield disk
430
-
431
406
@pytest .fixture (scope = 'session' )
432
407
def sr_disk_4k (pytestconfig , host : Host ) -> Generator [DiskDevName ]:
433
408
"""
0 commit comments