]> sourceware.org Git - lvm2.git/commitdiff
tests: mask result from kill command
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 10 May 2024 19:41:13 +0000 (21:41 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 10 May 2024 19:41:13 +0000 (21:41 +0200)
test/shell/lock-blocking.sh

index e1ced309e136db00590d197f64480e9e2aee9af3..ae38b01e98be721701bc2c68d2c8a2ee8d4f2f00 100644 (file)
@@ -47,7 +47,7 @@ not vgremove --config 'global { wait_for_locks = 0 }' $vg
 test -f "$TESTDIR/var/lock/lvm/P_global" # still running
 # First kill 'sleep' process forked from flock
 # Not using 'flock -F' since this flag is newer
-kill $(ps -o pid --no-headers --ppid "$flock_pid")
-kill "$flock_pid"
+kill $(ps -o pid --no-headers --ppid "$flock_pid") || true
+kill "$flock_pid" || true
 
 vgremove -ff $vg
This page took 0.038822 seconds and 5 git commands to generate.