]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
test: call "udevadm settle" after stopping array.
authorNeilBrown <neilb@suse.de>
Mon, 21 Mar 2011 23:09:30 +0000 (10:09 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 21 Mar 2011 23:09:30 +0000 (10:09 +1100)
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 <neilb@suse.de>
test

diff --git a/test b/test
index cb1398b80bc3b1777def7ba2b6b63a92c8c721ab..ca7643fff2c4ccd32c549f0adfdf892804092b0e 100755 (executable)
--- 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
 }