]> sourceware.org Git - lvm2.git/commitdiff
tests: check.sh no mixing string
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 29 Jun 2017 06:40:55 +0000 (08:40 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 29 Jun 2017 20:23:17 +0000 (22:23 +0200)
Argument mixes string and array. Use * or separate argument.

test/lib/check.sh

index 0ad48a9d87ec57d987582b1d31de1edb55b7a986..6f56ea3203ccbba543d167661af614f962a4ffe3 100644 (file)
@@ -237,7 +237,7 @@ in_sync() {
                return 1
        fi
 
-       echo "$lvm_name ($type$snap) is in-sync \"${a[@]}\""
+       echo "$lvm_name ($type$snap) is in-sync" "${a[@]}"
 }
 
 active() {
@@ -434,7 +434,7 @@ raid_leg_status() {
 
 grep_dmsetup() {
        dmsetup "$1" "$2" | tee out
-       grep -q "${@:3}" out || die "Expected output \"${@:3}\" from dmsetup $1 not found!"
+       grep -q "${@:3}" out || die "Expected output \"" "${@:3}" "\" from dmsetup $1 not found!"
 }
 
 #set -x
This page took 0.030604 seconds and 5 git commands to generate.