From: Zdenek Kabelac Date: Tue, 17 Oct 2023 23:48:50 +0000 (+0200) Subject: tests: aux kills lvmdbusd more agressively X-Git-Tag: v2_03_24~471 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=refs%2Fpipelines%2F1040416585;p=lvm2.git tests: aux kills lvmdbusd more agressively It's not exactly trivial to kill 'frozen' lvmdbusd. So skip the test testing interruption and also add killall use. --- diff --git a/test/lib/aux.sh b/test/lib/aux.sh index ee72281c0..553a0a892 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -317,6 +317,7 @@ prepare_lvmdbusd() { unset LVM_LOG_FILE_EPOCH unset LVM_LOG_FILE_MAX_LINES unset LVM_EXPECTED_EXIT_STATUS + export LVM_DBUSD_TEST_SKIP_SIGNAL=1 "$daemon" $lvmdbusdebug > debug.log_LVMDBUSD_out 2>&1 & local pid=$! @@ -495,6 +496,7 @@ kill_sleep_kill_() { if test -s "$pidfile" ; then pid=$(< "$pidfile") rm -f "$pidfile" + test "$pidfile" = "LOCAL_LVMDBUSD" && killall -9 lvmdbusd || true kill -TERM "$pid" 2>/dev/null || return 0 for i in {0..10} ; do ps "$pid" >/dev/null || return 0