summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2021-06-03 17:59:12 +0800
committerDavid Teigland <teigland@redhat.com>2021-06-03 09:39:32 -0500
commit5b361b197e1a3fbbc5419b9c46f19539c2b7305c (patch)
treec4e70a2d36517569d772dee47155baeca9705173
parent2097c27c05de30003850eb667b9cf21b3181fddf (diff)
downloadlvm2-5b361b197e1a3fbbc5419b9c46f19539c2b7305c.tar.gz
tests: Add checking for lvmlockd log
Add checking for lvmlockd log, this can be used for the test cases which are interested in the interaction with lvmlockd. Signed-off-by: Leo Yan <leo.yan@linaro.org>
-rw-r--r--test/lib/check.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/check.sh b/test/lib/check.sh
index 8493bde83..1f261940a 100644
--- a/test/lib/check.sh
+++ b/test/lib/check.sh
@@ -456,6 +456,11 @@ grep_dmsetup() {
grep -q "${@:3}" out || die "Expected output \"" "${@:3}" "\" from dmsetup $1 not found!"
}
+grep_lvmlockd_dump() {
+ lvmlockctl --dump | tee out
+ grep -q "${@:1}" out || die "Expected output \"" "${@:1}" "\" from lvmlockctl --dump not found!"
+}
+
#set -x
unset LVM_VALGRIND
"$@"