Skip to contentSkip to conversation

master - tests: mixes string and array

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=ec05890026ac9f66797fdd44dad4c8ce02b857b6
Commit:        ec05890026ac9f66797fdd44dad4c8ce02b857b6
Parent:        4e2fd6f6abcb97fe9f8ec2b5843469e2b497df25
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Jul 7 21:24:17 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 10 14:23:53 2017 +0200

tests: mixes string and array

Argument mixes string and array. Use * or separate argument

---
 test/shell/select-report.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/shell/select-report.sh +1 -1
index 314e207..b879bf5 100644
@@ -63,7 +63,7 @@ sel() {
 
 	# the number of lines on output must match
 	test "$items_found" -eq $# || {
-		echo "  >>> NUMBER OF ITEMS EXPECTED: $# ($@)"
+		echo "  >>> NUMBER OF ITEMS EXPECTED: $#" "$@"
 		echo "  >>> NUMBER OF ITEMS FOUND: $items_found ($(< $OUT_LOG_FILE))"
 		return 1
 	}