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 <neilb@suse.de>
This commit is contained in:
NeilBrown 2011-03-22 10:09:30 +11:00
parent 979afcb82b
commit 019ca1e1da
1 changed files with 3 additions and 0 deletions

3
test
View File

@ -101,6 +101,9 @@ mdadm() {
* ) $mdadm 2> $targetdir/stderr --quiet "$@"
esac
rv=$?
case $* in
*-S* ) udevadm settle;;
esac
cat >&2 $targetdir/stderr
return $rv
}