Give mdconfig a couple of seconds to deconfigure in case debugging is being
printed to a serial console. Reverse the order of args to diff to make it more logical.
This commit is contained in:
parent
3924ad705e
commit
22de4dc100
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113433
@ -14,6 +14,12 @@ for f in Data/disk.*.xml
|
||||
do
|
||||
b=`basename $f`
|
||||
mdconfig -d -u $MD > /dev/null 2>&1 || true
|
||||
if [ -c /dev/md$MD ] ; then
|
||||
sleep 1
|
||||
fi
|
||||
if [ -c /dev/md$MD ] ; then
|
||||
sleep 1
|
||||
fi
|
||||
if [ -c /dev/md$MD ] ; then
|
||||
echo "/dev/md$MD is busy" 1>&2
|
||||
exit 1
|
||||
@ -21,7 +27,7 @@ do
|
||||
MdLoad/MdLoad md${MD} $f
|
||||
if [ -f Ref/$b ] ; then
|
||||
if diskinfo /dev/md${MD}* |
|
||||
diff -I '$FreeBSD' -u - Ref/$b > $TMP; then
|
||||
diff -I '$FreeBSD' -u Ref/$b - > $TMP; then
|
||||
echo "PASSED: $b"
|
||||
else
|
||||
echo "FAILED: $b"
|
||||
|
Loading…
Reference in New Issue
Block a user