@@ -120,7 +120,6 @@ def pytest_collection_modifyitems(items, config):
120
120
'windows_vm' ,
121
121
'hostA2' ,
122
122
'hostB1' ,
123
- 'sr_disk' ,
124
123
'sr_disk_4k' ,
125
124
'unused_disks' ,
126
125
]
@@ -387,30 +386,6 @@ def unused_disks(disks: dict[Host, list[DiskDevName]]
387
386
logging .debug ("available disks collected: %s" , {host .hostname_or_ip : value for host , value in ret .items ()})
388
387
yield ret
389
388
390
- @pytest .fixture (scope = 'session' )
391
- def sr_disk (pytestconfig , host : Host ) -> Generator [DiskDevName ]:
392
- """
393
- Disk DEVICE NAME available on FIRST POOL MASTER.
394
-
395
- Abort if not exactly one --sr_disk. If --sr_disk=auto take any, else
396
- return requested device (abort if not present).
397
- """
398
- disks = pytestconfig .getoption ("sr_disk" )
399
- if len (disks ) != 1 :
400
- pytest .fail ("This test requires exactly one --sr-disk parameter" )
401
- disk = disks [0 ]
402
- if disk == "auto" :
403
- logging .info (">> Check for the presence of a free disk device on the master host" )
404
- disks = host .available_disks ()
405
- assert len (disks ) > 0 , "a free disk device is required on the master host"
406
- disk = disks [0 ]
407
- logging .info (f">> Found free disk device(s) on hostA1: { ' ' .join (disks )} . Using { disk } ." )
408
- else :
409
- logging .info (f">> Check that disk or block device { disk } is available on the master host" )
410
- assert disk in host .available_disks (), \
411
- f"disk or block device { disk } is either not present or already used on master host"
412
- yield disk
413
-
414
389
@pytest .fixture (scope = 'session' )
415
390
def sr_disk_4k (pytestconfig , host : Host ) -> Generator [DiskDevName ]:
416
391
"""
0 commit comments