Skip to contentSkip to conversation

master - tests: assign as string

PATCH Zdenek Kabelac 1 participant 1 message Jul 10, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f161c6ee9fad4d2ddefb97d4837d29360e5bc280
Commit:        f161c6ee9fad4d2ddefb97d4837d29360e5bc280
Parent:        2e47ab9b8c4526d1663da4aa3122b013237aaf9f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Jul 7 12:12:24 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 10 14:23:53 2017 +0200

tests: assign as string

Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.

---
 test/shell/vgsplit-operation.sh |    2 +-
 test/shell/vgsplit-raid.sh      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
test/shell/vgsplit-operation.sh +1 -1
index 5dff173..2ec140b 100644
@@ -21,7 +21,7 @@ export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
 . lib/inittest
 
 COMM() {
-	LAST_TEST="$@"
+	LAST_TEST="$*"
 }
 
 create_vg_() {
test/shell/vgsplit-raid.sh +1 -1
index dc2ef5a..08e2a8e 100644
@@ -17,7 +17,7 @@ SKIP_WITH_LVMPOLLD=1
 . lib/inittest
 
 COMM() {
-	LAST_TEST="$@"
+	LAST_TEST="$*"
 }
 
 create_vg_() {