Skip to contentSkip to conversation

master - tests: avoid double lines

PATCH Zdenek Kabelac 1 participant 1 message Jun 20, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3d591ac376b369de78d8471c2651256c5eb52b1f
Commit:        3d591ac376b369de78d8471c2651256c5eb52b1f
Parent:        1ea41b6d486cc34bf55e51eaac60f2cadfc866c3
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Jun 20 17:15:07 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Jun 20 18:24:52 2017 +0200

tests: avoid double lines

Skip showing same line twice in test's verbose log.

---
 test/lib/check.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/check.sh +1 -1
index 64812fb..5eec936 100644
@@ -411,7 +411,7 @@ raid_leg_status() {
 
 grep_dmsetup() {
 	dmsetup $1 $2 | tee out
-	grep "${@:3}" out || die "Expected output from dmsetup $1 not found!"
+	grep -q "${@:3}" out || die "Expected output \"${@:3}\" from dmsetup $1 not found!"
 }
 
 #set -x