diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2023-05-06 20:35:42 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2023-05-06 22:43:22 +0200 |
commit | 2fde4b6baa09f33890d4a5b951dc51b81828ef63 (patch) | |
tree | d702e6c6c6f83087303b6cf685e7c8f0f43402c8 | |
parent | aa19f2aa3d93b48c5e58a897f26de38b8080d483 (diff) | |
download | lvm2-2fde4b6baa09f33890d4a5b951dc51b81828ef63.tar.gz |
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.
-rw-r--r-- | test/shell/hints.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/shell/hints.sh b/test/shell/hints.sh index 7fe0e33f5..6c1711643 100644 --- a/test/shell/hints.sh +++ b/test/shell/hints.sh @@ -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" |