From d894dd484b8ec1ec6066689ff9ea2393d61e3498 Mon Sep 17 00:00:00 2001 From: Anton Myagkov Date: Wed, 25 Sep 2024 15:03:12 +0000 Subject: [PATCH] refactor: use another wait_for_block_device_to_appear implementation --- .../test/acceptance/test_runner/lib/helpers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cloud/disk_manager/test/acceptance/test_runner/lib/helpers.py b/cloud/disk_manager/test/acceptance/test_runner/lib/helpers.py index 275717baf1e..4de8c40303c 100644 --- a/cloud/disk_manager/test/acceptance/test_runner/lib/helpers.py +++ b/cloud/disk_manager/test/acceptance/test_runner/lib/helpers.py @@ -37,9 +37,10 @@ def wait_for_block_device_to_appear( disk_id: str, module_factory, ssh_key_path: str | None = None, -) -> str: - device_to_id_mapper = VirtualDevicesToIdMapper(ip, module_factory, ssh_key_path) - return device_to_id_mapper.wait_for_disk_to_appear(disk_id) +): + device_name = f'/dev/disk/by-id/virtio-{disk_id}' + helpers = module_factory.make_helpers(False) + helpers.wait_for_block_device_to_appear(ip, device_name, ssh_key_path=ssh_key_path) class VirtualDevicesToIdMapper: