1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: fix volume list test

Proper use of \" escaping and shell vars.
This commit is contained in:
Zdenek Kabelac 2014-08-26 12:09:03 +02:00
parent 25fe716b12
commit c37ca279e3

View File

@ -99,7 +99,7 @@ not lvchange --resync --addtag foo $vg/$lv1
# Play with tags and activation # Play with tags and activation
# #
TAG=$(uname -n) TAG=$(uname -n)
aux lvmconf 'activation/volume_list = [ "$vg/$lv2", "@mytag", "$vg2" ]' aux lvmconf "activation/volume_list = [ \"$vg/$lv2\", \"@mytag\" ]"
lvchange -ay $vg/$lv1 lvchange -ay $vg/$lv1
check inactive $vg $lv1 check inactive $vg $lv1
@ -123,9 +123,11 @@ not lvcreate -Zy -L10 -n $lv3 $vg2
lvcreate -Zn -L10 -n $lv3 $vg2 lvcreate -Zn -L10 -n $lv3 $vg2
check inactive $vg2 $lv3 check inactive $vg2 $lv3
aux lvmconf 'activation/volume_list = [ "$vg2" ]' aux lvmconf "activation/volume_list = [ \"$vg2\" ]"
vgchange -an $vg vgchange -an $vg
vgchange -ay $vg $vg2 vgchange -ay $vg $vg2
lvs -a -o+lv_active $vg $vg2 lvs -a -o+lv_active $vg $vg2
aux lvmconf "activation/volume_list = [ \"$vg\", \"$vg2\" ]"
vgremove -ff $vg $vg2 vgremove -ff $vg $vg2