]> sourceware.org Git - lvm2.git/commitdiff
tests: aux kills lvmdbusd more agressively 1040416585
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 17 Oct 2023 23:48:50 +0000 (01:48 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 17 Oct 2023 23:48:50 +0000 (01:48 +0200)
It's not exactly trivial to kill 'frozen' lvmdbusd.
So skip the test testing interruption and also add killall use.

test/lib/aux.sh

index ee72281c0e07c01aaf0a998610b835cbabd22a97..553a0a892aa1f2df03b0e85f00abf4f3c576da46 100644 (file)
@@ -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
This page took 0.036816 seconds and 5 git commands to generate.