Skip to contentSkip to conversation

master - tests: put vars in quotes

PATCH Zdenek Kabelac 1 participant 1 message Mar 17, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e3d208f7c2aa3964ae76a7fc108bf63957ef4bd6
Commit:        e3d208f7c2aa3964ae76a7fc108bf63957ef4bd6
Parent:        c1ce2cc86cb1a9bba16b62119829e1e1ddc0ff87
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Mar 17 16:30:52 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Mar 17 16:30:52 2014 +0100

tests: put vars in quotes

This shell var has space in middle

---
 test/shell/snapshot-usage.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
test/shell/snapshot-usage.sh +2 -2
index a50eeb2..095fddb 100644
@@ -80,12 +80,12 @@ vgcreate -s 1K $vg1 "$DM_DEV_DIR/$vg/$lv"
 lvcreate -V50 -L10 -n $lv1 -s $vg1
 CHECK_ACTIVE="active"
 test ! -e LOCAL_CLVMD || CHECK_ACTIVE="local exclusive"
-check lv_field $vg1/$lv1 lv_active ${CHECK_ACTIVE}
+check lv_field $vg1/$lv1 lv_active "$CHECK_ACTIVE"
 lvchange -an $vg1
 
 # On cluster snapshot gets exclusive activation
 lvchange -ay $vg1
-check lv_field $vg1/$lv1 lv_active ${CHECK_ACTIVE}
+check lv_field $vg1/$lv1 lv_active "$CHECK_ACTIVE"
 
 # Test removal of opened (bug unmounted) snapshot (device busy) for a while
 sleep 120 < "$DM_DEV_DIR/$vg1/$lv1" &