From fe77d1a71043ca449dbe3a2a635ba0096e4ef9b9 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 12 Sep 2020 12:25:58 +0200 Subject: [PATCH] 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 -- 2.43.5