Fix tests/layouts

some attributes files now return "new (old)", so allow for that when
reading the attr file.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2010-07-29 14:20:35 +10:00
parent 5f6ca90a9b
commit 69a3f12e6e
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ checkgeo() {
if [ $# -gt 0 ] ; then
val=$1
shift
if [ " `cat /sys/block/$dev/md/$attr`" != " $val" ]
if [ " `sed 's/ .*//' /sys/block/$dev/md/$attr`" != " $val" ]
then echo "$attr doesn't match for $dev"
exit 1
fi