From e1b93b712f2993303cc5905efdb6c51b4fda7295 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 15 Mar 2022 20:30:09 -0700 Subject: [PATCH] generic/459: ensure that the lvm devices have been created Once in a /very/ long while this test fails because _mkfs_dev can't find the LVM thinp volume after it's been created. Since the "solution" du jour seems to be to sprinkle udevadm settle calls everywhere, do that here in the hopes that will fix it. Signed-off-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Eryu Guan --- tests/generic/459 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/generic/459 b/tests/generic/459 index cda19e6e..57d58e55 100755 --- a/tests/generic/459 +++ b/tests/generic/459 @@ -70,6 +70,7 @@ $LVM_PROG lvcreate --virtualsize $virtsize \ -T $vgname/$poolname \ -n $lvname >>$seqres.full 2>&1 +$UDEV_SETTLE_PROG &>/dev/null _mkfs_dev /dev/mapper/$vgname-$lvname >>$seqres.full 2>&1 # Running the test over the original volume doesn't reproduce the problem -- 2.39.5