diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-04 16:02:19 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-04 16:02:19 +0000 |
commit | 487c65373b79dee42c616d963497d25b295f5c35 (patch) | |
tree | ca3e78c1fc852a91cf22d37eb4178cf3dab455a7 /test/shell/lvcreate-raid.sh | |
parent | 98c92abf4ef5b91638c0c3589b66b88de6b4dc70 (diff) | |
download | lvm2-487c65373b79dee42c616d963497d25b295f5c35.tar.gz lvm2-487c65373b79dee42c616d963497d25b295f5c35.tar.xz lvm2-487c65373b79dee42c616d963497d25b295f5c35.zip |
Speedup test run by a few minutes
Reduce disc excercise for some test and focus on LVM testing by
using smaller extent size.
Reduce number of teardown_devs calls and use vg/lvremove instead.
Don't sleep for seconds on pvmove.
FIXME: shell/lvconvert-mirror-basic.sh seems to need more checking.
Test fails for smalled extent size then 512k.
Diffstat (limited to 'test/shell/lvcreate-raid.sh')
-rw-r--r-- | test/shell/lvcreate-raid.sh | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/test/shell/lvcreate-raid.sh b/test/shell/lvcreate-raid.sh index 5c687b44..4d595cf4 100644 --- a/test/shell/lvcreate-raid.sh +++ b/test/shell/lvcreate-raid.sh @@ -44,7 +44,7 @@ function wait_for_raid_sync() local i=0 while ! is_raid_in_sync $1; do - sleep 2 + sleep .2 i=$(($i + 1)) if [ $i -gt 500 ]; then echo "Sync is taking too long - assume stuck" @@ -53,31 +53,13 @@ function wait_for_raid_sync() done } -function is_raid_available() -{ - local a - - modprobe dm-raid - a=(`dmsetup targets | grep raid`) - if [ -z $a ]; then - echo "RAID target not available" - return 1 - fi - if [ ${a[1]} != "v1.1.0" ]; then - echo "Bad RAID version" - return 1 - fi - - return 0 -} - ######################################################## # MAIN ######################################################## -is_raid_available || exit 200 - -aux prepare_vg 5 80 +aux target_at_least dm-raid 1 1 0 || skip +aux prepare_pvs 5 20 +vgcreate -c n -s 512k $vg $(cat DEVICES) ########################################### # Create, wait for sync, remove tests |