From e3d208f7c2aa3964ae76a7fc108bf63957ef4bd6 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 17 Mar 2014 16:30:52 +0100 Subject: [PATCH] tests: put vars in quotes This shell var has space in middle --- test/shell/snapshot-usage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/shell/snapshot-usage.sh b/test/shell/snapshot-usage.sh index a50eeb243..095fddb2e 100644 --- a/test/shell/snapshot-usage.sh +++ b/test/shell/snapshot-usage.sh @@ -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" &