diff options
author | Gilles Espinasse <g.esp@free.fr> | 2012-10-10 13:38:15 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-11 10:38:51 +1100 |
commit | ef6e87a7b92de88f05c4a34d1f51db82807d6f50 (patch) | |
tree | b97119ddc61a43c0d8b5cc0d1212096de41fb408 /tests/01r5integ | |
parent | 5d5002289c97e8f745e6300ca7ca203c3a477507 (diff) |
Fix tests sh too many arguments warnings
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Add quotes on if [ $sum != $sum1 ]
Fix 2 typo /sh1sum/sha1sum/ /matc /match /
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/01r5integ')
-rw-r--r-- | tests/01r5integ | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/01r5integ b/tests/01r5integ index 714a57fb..97a71f34 100644 --- a/tests/01r5integ +++ b/tests/01r5integ @@ -1,7 +1,7 @@ # Check integrity of raid5 in degraded mode # Create a 4 disk raid5, create a filesystem and -# sh1sum it with each device failed +# sha1sum it with each device failed for layout in ls rs la ra do @@ -16,9 +16,9 @@ do mdadm $md0 -r $i blockdev --flushbufs $md0 sum1=`sha1sum $md0` - if [ $sum != $sum1 ] + if [ "$sum" != "$sum1" ] then - echo $sum does not matc $sum1 with $i missing + echo $sum does not match $sum1 with $i missing exit 1 fi mdadm $md0 -a $i |