[lvm-devel] master - tests: inittest compare string
Zdenek Kabelac
zkabelac at sourceware.org
Sat May 12 16:26:16 UTC 2018
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0221ebfd64541ee8598fc7f936f8267505b1bfae
Commit: 0221ebfd64541ee8598fc7f936f8267505b1bfae
Parent: a7a23e7dd2f7fde59760a3d3f7c980d7a8f657a7
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Sat May 12 00:06:44 2018 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Sat May 12 18:05:50 2018 +0200
tests: inittest compare string
Avoid logging warning when compared string is empty with -eq.
---
test/lib/inittest.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh
index 62ec494..b6a1a3a 100644
--- a/test/lib/inittest.sh
+++ b/test/lib/inittest.sh
@@ -53,7 +53,7 @@ if test -n "$LVM_TEST_FLAVOUR"; then
fi
test -n "$SKIP_WITHOUT_CLVMD" && test "$LVM_TEST_LOCKING" -ne 3 && initskip
-test -n "$SKIP_WITH_CLVMD" && test "$LVM_TEST_LOCKING" -eq 3 && initskip
+test -n "$SKIP_WITH_CLVMD" && test "$LVM_TEST_LOCKING" = 3 && initskip
test -n "$SKIP_WITHOUT_LVMETAD" && test -z "$LVM_TEST_LVMETAD" && initskip
test -n "$SKIP_WITH_LVMETAD" && test -n "$LVM_TEST_LVMETAD" && initskip
More information about the lvm-devel
mailing list