]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - tests/07layouts
tests/env-ddf-template: helper for new unit test
[thirdparty/mdadm.git] / tests / 07layouts
index e72bb356b7fed0775b086dc885788c78fdae9896..4c20eb8bb7b7b8dc3479044c411d76bb4fa82365 100644 (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