Skip to contentSkip to conversation

master - tests: hide error message

PATCH Zdenek Kabelac 1 participant 1 message May 1, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0eea780bceccb5e1693429529f292b2fb36afadd
Commit:        0eea780bceccb5e1693429529f292b2fb36afadd
Parent:        0480b4743a77c166390f50561e8bcdb68214d4ba
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Apr 30 13:57:08 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri May 1 15:07:58 2015 +0200

tests: hide error message

Hide error about missing declare -A support.

---
 test/lib/aux.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/aux.sh +1 -1
index 276bb35..c6b05f8 100644
@@ -786,7 +786,7 @@ EOF
 	    echo "$v"
 	done >> "$config_values"
 
-	declare -A CONF || {
+	declare -A CONF 2>/dev/null || {
 		# Associative arrays is not available
 		local s
 		for s in $(cut -f1 -d/ "$config_values" | sort | uniq); do