master - tests: avoid using string
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fe77d1a71043ca449dbe3a2a635ba0096e4ef9b9 Commit: fe77d1a71043ca449dbe3a2a635ba0096e4ef9b9 Parent: 3008e1be08c92fc9ee409397c174805d4193e63b Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Sep 12 12:25:58 2020 +0200 Committer: Zdenek Kabelac <[email protected]> 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(-)
test/shell/integrity-blocksize-2.sh +1 -1
@@ -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
test/shell/integrity-blocksize-3.sh +1 -1
@@ -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
test/shell/integrity-dmeventd.sh +1 -1
@@ -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
test/shell/integrity-large.sh +1 -1
@@ -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
test/shell/integrity-misc.sh +1 -1
@@ -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
test/shell/integrity.sh +1 -1
@@ -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