diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2023-02-16 16:50:07 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2023-02-17 00:08:50 +0100 |
commit | 1788b4b3aa129b9bfbb977be263455680b6dc128 (patch) | |
tree | 36cd1371e1389714d1647ceebb50618625b1564c /test/lib | |
parent | 06c5c29443fdd48730a282a5db16e46c793db27b (diff) | |
download | lvm2-1788b4b3aa129b9bfbb977be263455680b6dc128.tar.gz |
tests: lvmdbus testing use --debug optinally now
To shorten down logging output of lvmdbus - use for now lvmdbus
with --debug option only when LVM_DEBUG_LVMDBUS=1 is set.
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/aux.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index ccc787eca..c15fd5baa 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -281,6 +281,7 @@ lvmpolld_dump() { } prepare_lvmdbusd() { + local lvmdbusdebug= local daemon rm -f debug.log_LVMDBUSD_out @@ -324,7 +325,8 @@ prepare_lvmdbusd() { echo "## preparing lvmdbusd..." lvmconf "global/notify_dbus = 1" - "$daemon" --debug > debug.log_LVMDBUSD_out 2>&1 & + test "${LVM_DEBUG_LVMDBUS:-0}" != "0" && lvmdbusdebug="--debug" + "$daemon" $lvmdbusdebug > debug.log_LVMDBUSD_out 2>&1 & local pid=$! sleep 1 |