All of lore.kernel.org
 help / color / mirror / Atom feed
* master - tests: fix volume list test
@ 2014-08-26 12:17 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2014-08-26 12:17 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c37ca279e33b532f00da4b2f50e8e1ad547e8a77
Commit:        c37ca279e33b532f00da4b2f50e8e1ad547e8a77
Parent:        25fe716b123109dee83a593d3c354ffac13b06b1
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Tue Aug 26 12:09:03 2014 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Tue Aug 26 14:13:07 2014 +0200

tests: fix volume list test

Proper use of \" escaping and shell vars.
---
 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 cb9be53..4d33563 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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-26 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-26 12:17 master - tests: fix volume list test Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.