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:
parent
5f6ca90a9b
commit
69a3f12e6e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue