diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-08-26 12:09:03 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-08-26 14:13:07 +0200 |
commit | c37ca279e33b532f00da4b2f50e8e1ad547e8a77 (patch) | |
tree | 34b8c1f8976d5fed6aa0f504b09a80bd31b787ab | |
parent | 25fe716b123109dee83a593d3c354ffac13b06b1 (diff) | |
download | lvm2-c37ca279e33b532f00da4b2f50e8e1ad547e8a77.tar.gz |
tests: fix volume list test
Proper use of \" escaping and shell vars.
-rw-r--r-- | test/shell/lvchange-thin.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/shell/lvchange-thin.sh b/test/shell/lvchange-thin.sh index cb9be53cc..4d3356330 100644 --- a/test/shell/lvchange-thin.sh +++ b/test/shell/lvchange-thin.sh @@ -99,7 +99,7 @@ not lvchange --resync --addtag foo $vg/$lv1 # Play with tags and activation # TAG=$(uname -n) -aux lvmconf 'activation/volume_list = [ "$vg/$lv2", "@mytag", "$vg2" ]' +aux lvmconf "activation/volume_list = [ \"$vg/$lv2\", \"@mytag\" ]" lvchange -ay $vg/$lv1 check inactive $vg $lv1 @@ -123,9 +123,11 @@ not lvcreate -Zy -L10 -n $lv3 $vg2 lvcreate -Zn -L10 -n $lv3 $vg2 check inactive $vg2 $lv3 -aux lvmconf 'activation/volume_list = [ "$vg2" ]' +aux lvmconf "activation/volume_list = [ \"$vg2\" ]" vgchange -an $vg vgchange -ay $vg $vg2 lvs -a -o+lv_active $vg $vg2 +aux lvmconf "activation/volume_list = [ \"$vg\", \"$vg2\" ]" + vgremove -ff $vg $vg2 |