[lvm-devel] master - tests: use properly quoted device list

Zdenek Kabelac zkabelac at sourceware.org
Wed Jul 12 11:53:25 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1daa1cc3a98b8812912875773ad3be1b9b173c4c
Commit:        1daa1cc3a98b8812912875773ad3be1b9b173c4c
Parent:        5a91b0a2e24dca07441aefb09fcaccaf98088a03
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Wed Jul 12 13:50:25 2017 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Wed Jul 12 13:50:25 2017 +0200

tests: use properly quoted device list

---
 test/api/percent.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/test/api/percent.sh b/test/api/percent.sh
index f25c441..32c0892 100644
--- a/test/api/percent.sh
+++ b/test/api/percent.sh
@@ -18,8 +18,9 @@ SKIP_WITH_LVMPOLLD=1
 aux kernel_at_least 2 6 33 || skip
 
 aux prepare_pvs 2
+get_devs
 
-vgcreate -s 4k $vg $(cat DEVICES)
+vgcreate -s 4k "$vg" "${DEVICES[@]}"
 lvcreate -aey -l 5 -n foo $vg
 lvcreate -s -n snap $vg/foo -l 3 -c 4k
 lvcreate -s -n snap2 $vg/foo -l 6 -c 4k




More information about the lvm-devel mailing list