From 019ca1e1da0754473d85c96756b376c260f42b02 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 22 Mar 2011 10:09:30 +1100 Subject: [PATCH] test: call "udevadm settle" after stopping array. If we don't do this, then the unlink from /dev might happen after the next step in the test creates something in /dev, and device names seem to go missing. Signed-off-by: NeilBrown --- test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test b/test index cb1398b..ca7643f 100755 --- a/test +++ b/test @@ -101,6 +101,9 @@ mdadm() { * ) $mdadm 2> $targetdir/stderr --quiet "$@" esac rv=$? + case $* in + *-S* ) udevadm settle;; + esac cat >&2 $targetdir/stderr return $rv }