diff options
author | NeilBrown <neilb@suse.de> | 2010-07-29 14:20:35 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-07-29 14:20:35 +1000 |
commit | 69a3f12e6ee173964369baf558d71f74748ae3b5 (patch) | |
tree | b3c1033b96a397c65845faa7dbc84436a061a1dd /tests | |
parent | 5f6ca90a9b81380317084ec0229e13ff2aa77fd0 (diff) | |
download | mdadm-69a3f12e6ee173964369baf558d71f74748ae3b5.tar.gz |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/07layouts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/07layouts b/tests/07layouts index e72bb35..4c20eb8 100644 --- a/tests/07layouts +++ b/tests/07layouts @@ -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 |