test-conftest: Use cached device_ids + fix posix path

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
Kamil Gierszewski
2024-11-04 14:00:13 +01:00
parent 4626d87471
commit ed85411750
2 changed files with 21 additions and 22 deletions

View File

@@ -174,8 +174,8 @@ def base_prepare(item):
# stop only those RAIDs, which are comprised of test disks
if all(map(lambda device:
any(map(lambda disk_path:
disk_path in device.get_device_id(),
[bd.get_device_id() for bd in TestRun.dut.disks])),
disk_path in device.device_id,
[bd.device_id for bd in TestRun.dut.disks])),
raid.array_devices)):
raid.remove_partitions()
raid.unmount()