From: NeilBrown Date: Mon, 21 Mar 2011 23:09:30 +0000 (+1100) Subject: test: call "udevadm settle" after stopping array. X-Git-Tag: mdadm-3.2.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=019ca1e1da0754473d85c96756b376c260f42b02;p=thirdparty%2Fmdadm.git 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 --- diff --git a/test b/test index cb1398b8..ca7643ff 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 }