[lvm-devel] master - tests: avoid double lines

Zdenek Kabelac zkabelac at sourceware.org
Tue Jun 20 16:25:48 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3d591ac376b369de78d8471c2651256c5eb52b1f
Commit:        3d591ac376b369de78d8471c2651256c5eb52b1f
Parent:        1ea41b6d486cc34bf55e51eaac60f2cadfc866c3
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Tue Jun 20 17:15:07 2017 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
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(-)

diff --git a/test/lib/check.sh b/test/lib/check.sh
index 64812fb..5eec936 100644
--- a/test/lib/check.sh
+++ b/test/lib/check.sh
@@ -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




More information about the lvm-devel mailing list