mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: retry removal
After umout we may race with system udevd rule - so just retry once again after 1s sleep - that should be enough - otherwise we would need some loop here...
This commit is contained in:
parent
e72e130e9d
commit
e3adccb528
@ -22,7 +22,10 @@ MOUNT_DIR=mnt
|
|||||||
cleanup_mounted_and_teardown()
|
cleanup_mounted_and_teardown()
|
||||||
{
|
{
|
||||||
umount "$MOUNT_DIR" || true
|
umount "$MOUNT_DIR" || true
|
||||||
|
dmsetup remove $THIN || {
|
||||||
|
sleep 1 # retry once more after sleep (udev race)
|
||||||
dmsetup remove $THIN
|
dmsetup remove $THIN
|
||||||
|
}
|
||||||
vgremove -ff $vg
|
vgremove -ff $vg
|
||||||
aux teardown
|
aux teardown
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user