Skip to content

Commit b98952a

Browse files
committed
Use unused_disks in formatted_and_mounted_ext4_disk
Signed-off-by: Yann Dirson <[email protected]>
1 parent 0e683da commit b98952a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgfixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def sr_disk_wiped(host: Host, sr_disk: DiskDevName) -> Generator[DiskDevName]:
2727

2828
# package scope so that the device is unmounted before tests from the next package is executed.
2929
@pytest.fixture(scope='package')
30-
def formatted_and_mounted_ext4_disk(host: Host, sr_disk: DiskDevName) -> Generator[str]:
30+
def formatted_and_mounted_ext4_disk(host: Host, unused_disks: dict[Host, list[DiskDevName]]) -> Generator[str]:
3131
"""Mountpoint for newly-formatted disk on MASTER HOST OF FIRST POOL."""
3232
mountpoint = '/var/tmp/sr_disk_mountpoint'
33+
sr_disk = unused_disks[host][0]
3334
setup_formatted_and_mounted_disk(host, sr_disk, 'ext4', mountpoint)
3435
yield mountpoint
3536
teardown_formatted_and_mounted_disk(host, mountpoint)

0 commit comments

Comments
 (0)