Skip to contentSkip to conversation

master - tests: quote dev

PATCH Zdenek Kabelac 1 participant 1 message Feb 27, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c23cd12023bd18a83ae0f284e69f3b6689d79b37
Commit:        c23cd12023bd18a83ae0f284e69f3b6689d79b37
Parent:        f4afd07700986b368c7ea8543f04f8e2dfc02a8c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Feb 27 14:49:49 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Feb 27 14:49:49 2014 +0100

tests: quote dev

---
 test/shell/vgck.sh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
test/shell/vgck.sh +4 -2
index 0dec605..40af20a 100644
@@ -14,7 +14,7 @@
 aux prepare_vg 3
 lvcreate -n blabla -L 1 $vg
 
-dd if=/dev/urandom bs=512 seek=2 count=32 of=$dev2
+dd if=/dev/urandom bs=512 seek=2 count=32 of="$dev2"
 
 # TODO: aux lvmconf "global/locking_type = 4"
 
@@ -26,7 +26,9 @@ else
     grep "Inconsistent metadata found for VG $vg" vgscan.out
 fi
 
-dd if=/dev/urandom bs=512 seek=2 count=32 of=$dev2
+dd if=/dev/urandom bs=512 seek=2 count=32 of="$dev2"
+aux notify_lvmetad "$dev2"
+
 vgck $vg 2>&1 | tee vgck.out
 grep Incorrect vgck.out