Skip to contentSkip to conversation

dev-mornfall-activate - tests: drop testing of raids in cluster

PATCH Petr Rockai 1 participant 1 message Jun 4, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=cd9350198e3178251a54c442183465e8b7719251
Commit:        cd9350198e3178251a54c442183465e8b7719251
Parent:        e4dfa785d14643e1efd298af1040f461704b0a67
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed May 29 12:48:29 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu May 30 17:35:23 2013 +0200

tests: drop testing of raids in cluster

Since raid is not clustered yet - drop it from testing in cluster phase. (saving running some time)

---
 test/shell/lvconvert-raid.sh   |    4 +++-
 test/shell/lvconvert-raid10.sh |    4 +++-
 test/shell/lvcreate-large.sh   |    2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)
test/shell/lvconvert-raid.sh +3 -1
index 59c8bdb..61345da 100644
@@ -11,6 +11,8 @@
 
 . lib/test
 
+test -e LOCAL_CLVMD && skip
+
 get_image_pvs() {
 	local d
 	local images
@@ -26,7 +28,7 @@ aux target_at_least dm-raid 1 2 0 || skip
 
 # 9 PVs needed for RAID10 testing (3-stripes/2-mirror - replacing 3 devs)
 aux prepare_pvs 9 80
-vgcreate -c n -s 256k $vg $(cat DEVICES)
+vgcreate -s 256k $vg $(cat DEVICES)
 
 ###########################################
 # RAID1 convert tests
test/shell/lvconvert-raid10.sh +3 -1
index 2e4381d..b2d4afd 100644
@@ -11,6 +11,8 @@
 
 . lib/test
 
+test -e LOCAL_CLVMD && skip
+
 get_image_pvs() {
 	local d
 	local images
@@ -28,7 +30,7 @@ aux target_at_least dm-raid 1 3 1 || skip
 
 # 9 PVs needed for RAID10 testing (3-stripes/2-mirror - replacing 3 devs)
 aux prepare_pvs 9 80
-vgcreate -c n -s 256k $vg $(cat DEVICES)
+vgcreate -s 256k $vg $(cat DEVICES)
 
 lvcreate --type raid10 -m 1 -i 3 -l 3 -n $lv1 $vg
 aux wait_for_sync $vg $lv1
test/shell/lvcreate-large.sh +1 -1
index b61ccca..09e323a 100644
@@ -23,7 +23,7 @@ lvcreate -s -l 100%FREE -n $lv $vg --virtualsize 1024T
 aux lvmconf 'devices/filter = [ "a/dev\/mapper\/.*$/", "a/dev\/LVMTEST/", "r/.*/" ]'
 
 pvcreate $DM_DEV_DIR/$vg/$lv
-vgcreate -c n $vg1 $DM_DEV_DIR/$vg/$lv
+vgcreate $vg1 $DM_DEV_DIR/$vg/$lv
 
 lvcreate -l 100%FREE -n $lv1 $vg1
 check lv_field $vg1/$lv1 size "1024.00t"