Skip to content

Commit e7fd859

Browse files
author
Jan Musial
committed
Don't raise exception if config serial doesn't match with detected
Signed-off-by: Jan Musial <jan.musial@intel.com>
1 parent 07a56a1 commit e7fd859

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/functional/tests/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,7 @@ def base_prepare(item):
259259
for disk in TestRun.disks.values():
260260
disk_serial = get_disk_serial_number(disk.path)
261261
if disk.serial_number != disk_serial:
262-
raise Exception(
263-
f"Serial for {disk.path} doesn't match the one from the config."
264-
f"Serial from config {disk.serial_number}, actual serial {disk_serial}"
265-
)
262+
disk.serial_number = disk_serial
266263

267264
disk.umount_all_partitions()
268265
Mdadm.zero_superblock(os.path.join('/dev', disk.device_id))

0 commit comments

Comments
 (0)