mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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>
This commit is contained in:
parent
2097c27c05
commit
5b361b197e
@ -456,6 +456,11 @@ grep_dmsetup() {
|
|||||||
grep -q "${@:3}" out || die "Expected output \"" "${@:3}" "\" from dmsetup $1 not found!"
|
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
|
#set -x
|
||||||
unset LVM_VALGRIND
|
unset LVM_VALGRIND
|
||||||
"$@"
|
"$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user