NeilBrown: udevadm settle in autodetect test

Martin F. Krafft madduck at alioth.debian.org
Sat Aug 28 18:45:46 UTC 2010


Module: mdadm
Branch: build
Commit: 8d848be1ede5a2827854e19a5e3628b6d4f91103
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=8d848be1ede5a2827854e19a5e3628b6d4f91103

Author: NeilBrown <neilb at suse.de>
Date:   Thu Aug  5 16:50:03 2010 +1000

udevadm settle in autodetect test

some udev activity was interfering with the partitioning.

Signed-off-by: NeilBrown <neilb at suse.de>

---

 tests/07autodetect |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/07autodetect b/tests/07autodetect
index 156cced..917e0d6 100644
--- a/tests/07autodetect
+++ b/tests/07autodetect
@@ -14,12 +14,14 @@ fi
 
 mdadm -CR -e 0 $mdp0 -l0 -f -n1 $dev0
 mdadm -CR -e 0 $mdp1 -l0 -f -n1 $dev1
+udevadm settle
 sfdisk $mdp0 >&2 << END
 ,,FD
 END
 sfdisk $mdp1 >&2 << END
 ,,FD
 END
+udevadm settle
 mdadm -CR -e 0 $md0 -l1 -n2 ${mdp0}p1 ${mdp1}p1
 check resync
 check raid1




More information about the pkg-mdadm-commits mailing list