diff options
author | Neil Brown <neilb@suse.de> | 2005-08-15 08:14:27 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-08-15 08:14:27 +0200 |
commit | dab6685f3d9982b697d938d99737897ea8ac768c (patch) | |
tree | f68788b7c36feabc151e96d622dffd44644fbbac /tests/04r0update | |
parent | Add a test. (diff) | |
download | mdadm-dab6685f3d9982b697d938d99737897ea8ac768c.tar.xz mdadm-dab6685f3d9982b697d938d99737897ea8ac768c.zip |
Add 'quite' option and tidy up some tests.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'tests/04r0update')
-rw-r--r-- | tests/04r0update | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/04r0update b/tests/04r0update index 73ecbd5e..2a6939df 100644 --- a/tests/04r0update +++ b/tests/04r0update @@ -1,18 +1,18 @@ set -e # create a raid0, re-assemble with a different super-minor -$mdadm -CR $md0 -l0 -n3 $dev0 $dev1 $dev2 -sh tests/testdev $md0 3 $mdsize0 64 -minor1=`$mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'` -$mdadm -S /dev/md0 +mdadm -CR $md0 -l0 -n3 $dev0 $dev1 $dev2 +testdev $md0 3 $mdsize0 64 +minor1=`mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'` +mdadm -S /dev/md0 -$mdadm -A $md1 $dev0 $dev1 $dev2 -minor2=`$mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'` -$mdadm -S /dev/md1 +mdadm -A $md1 $dev0 $dev1 $dev2 +minor2=`mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'` +mdadm -S /dev/md1 -$mdadm -A $md1 --update=super-minor $dev0 $dev1 $dev2 -minor3=`$mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'` -$mdadm -S /dev/md1 +mdadm -A $md1 --update=super-minor $dev0 $dev1 $dev2 +minor3=`mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'` +mdadm -S /dev/md1 case "$minor1 $minor2 $minor3" in "0 0 1" ) ;; |