diff --git a/test/units/TEST-64-UDEV-STORAGE.sh b/test/units/TEST-64-UDEV-STORAGE.sh index b9769b0ff1..7ee606e697 100755 --- a/test/units/TEST-64-UDEV-STORAGE.sh +++ b/test/units/TEST-64-UDEV-STORAGE.sh @@ -1259,7 +1259,9 @@ EOF # Clear superblocks to make the MD device will not be restarted even if the VM is restarted. # This is a workaround for issue #38240. - mdadm -v --zero-superblock --force "${devices[@]}" + udevadm settle --timeout=30 + # shellcheck disable=SC2046 + mdadm -v --zero-superblock --force $(readlink -f "${devices[@]}") udevadm settle --timeout=30 # Check if all expected symlinks were removed after the cleanup @@ -1322,7 +1324,9 @@ testcase_mdadm_lvm() { # Clear superblocks to make the MD device will not be restarted even if the VM is restarted. # This is a workaround for issue #38240. - mdadm -v --zero-superblock --force "${devices[@]}" + udevadm settle --timeout=30 + # shellcheck disable=SC2046 + mdadm -v --zero-superblock --force $(readlink -f "${devices[@]}") udevadm settle --timeout=30 # Check if all expected symlinks were removed after the cleanup