All of lore.kernel.org
 help / color / mirror / Atom feed
* master - tests: avoid using string
@ 2020-09-12 11:24 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2020-09-12 11:24 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fe77d1a71043ca449dbe3a2a635ba0096e4ef9b9
Commit:        fe77d1a71043ca449dbe3a2a635ba0096e4ef9b9
Parent:        3008e1be08c92fc9ee409397c174805d4193e63b
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sat Sep 12 12:25:58 2020 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Sat Sep 12 13:24:03 2020 +0200

tests: avoid using string

String 'TEST WARNING' may not be present in the test script itself.
Add '\ ' to avoid 'grep' matching test as the test with warning.
---
 test/shell/integrity-blocksize-2.sh | 2 +-
 test/shell/integrity-blocksize-3.sh | 2 +-
 test/shell/integrity-dmeventd.sh    | 2 +-
 test/shell/integrity-large.sh       | 2 +-
 test/shell/integrity-misc.sh        | 2 +-
 test/shell/integrity.sh             | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/shell/integrity-blocksize-2.sh b/test/shell/integrity-blocksize-2.sh
index 5e0fd9ad1..3f6eb9242 100644
--- a/test/shell/integrity-blocksize-2.sh
+++ b/test/shell/integrity-blocksize-2.sh
@@ -42,7 +42,7 @@ _wait_recalc() {
         # enabled never gets in sync. I saw this in BB, but not when executing
         # the commands manually
         if test -z "$sync"; then
-                echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed"
+                echo "TEST\ WARNING: Resync of dm-integrity device '$checklv' failed"
                 dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}"
                 exit
         fi
diff --git a/test/shell/integrity-blocksize-3.sh b/test/shell/integrity-blocksize-3.sh
index 4aea97253..7034bc362 100644
--- a/test/shell/integrity-blocksize-3.sh
+++ b/test/shell/integrity-blocksize-3.sh
@@ -42,7 +42,7 @@ _wait_recalc() {
         # enabled never gets in sync. I saw this in BB, but not when executing
         # the commands manually
         if test -z "$sync"; then
-                echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed"
+                echo "TEST\ WARNING: Resync of dm-integrity device '$checklv' failed"
                 dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}"
                 exit
         fi
diff --git a/test/shell/integrity-dmeventd.sh b/test/shell/integrity-dmeventd.sh
index 296f55680..0a081599f 100644
--- a/test/shell/integrity-dmeventd.sh
+++ b/test/shell/integrity-dmeventd.sh
@@ -113,7 +113,7 @@ _wait_recalc() {
 	# enabled never gets in sync. I saw this in BB, but not when executing
 	# the commands manually
 	if test -z "$sync"; then
-		echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed"
+		echo "TEST\ WARNING: Resync of dm-integrity device '$checklv' failed"
                 dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}"
 		exit
 	fi
diff --git a/test/shell/integrity-large.sh b/test/shell/integrity-large.sh
index 06b0e03db..7d252590e 100644
--- a/test/shell/integrity-large.sh
+++ b/test/shell/integrity-large.sh
@@ -99,7 +99,7 @@ _wait_recalc() {
 	# enabled never gets in sync. I saw this in BB, but not when executing
 	# the commands manually
 	if test -z "$sync"; then
-		echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed"
+		echo "TEST\ WARNING: Resync of dm-integrity device '$checklv' failed"
                 dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}"
 		exit
 	fi
diff --git a/test/shell/integrity-misc.sh b/test/shell/integrity-misc.sh
index c8ec3bf49..e025c93d2 100644
--- a/test/shell/integrity-misc.sh
+++ b/test/shell/integrity-misc.sh
@@ -113,7 +113,7 @@ _wait_sync() {
 	# enabled never gets in sync. I saw this in BB, but not when executing
 	# the commands manually
 	if test -z "$sync"; then
-		echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed"
+		echo "TEST\ WARNING: Resync of dm-integrity device '$checklv' failed"
                 dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}"
 		exit
 	fi
diff --git a/test/shell/integrity.sh b/test/shell/integrity.sh
index f8740bc4f..95c8557cc 100644
--- a/test/shell/integrity.sh
+++ b/test/shell/integrity.sh
@@ -212,7 +212,7 @@ _wait_recalc() {
 	# enabled never gets in sync. I saw this in BB, but not when executing
 	# the commands manually
 	if test -z "$sync"; then
-		echo "TEST WARNING: Resync of dm-integrity device '$checklv' failed"
+		echo "TEST\ WARNING: Resync of dm-integrity device '$checklv' failed"
                 dmsetup status "$DM_DEV_DIR/mapper/${checklv/\//-}"
 		exit
 	fi



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-12 11:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12 11:24 master - tests: avoid using string Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.