1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

tests: check for lvmdbusd running in the system

Check for running (possibly leftover) lvmdbusd running in the
system - as this daemon may interfere with this test as in this
case both be operating on same  'live' data in /run/lvm.
This commit is contained in:
Zdenek Kabelac 2023-05-06 20:35:42 +02:00
parent aa19f2aa3d
commit 2fde4b6baa

View File

@ -17,6 +17,11 @@ SKIP_WITH_LVMLOCKD=1
. lib/inittest
# Since this test is currenly using 'system's' hints,
# it cannot be running, while lvmdbusd operates in the system.
# FIXME: sometimes test suite itself 'leaks' lvmdbusd process.
pgrep lvmdbusd && skip "Can't run this test, while lvmdbusd is running"
RUNDIR="/run"
test -d "$RUNDIR" || RUNDIR="/var/run"
HINTS="$RUNDIR/lvm/hints"