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