mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
TEST: Give lvmetad a chance to exit gracefully upon teardown.
This commit is contained in:
parent
39468b73a3
commit
556d2c920a
@ -167,7 +167,9 @@ teardown_devs() {
|
||||
|
||||
teardown() {
|
||||
echo -n "## teardown..."
|
||||
test ! -s LOCAL_LVMETAD || kill -9 "$(cat LOCAL_LVMETAD)" || true
|
||||
test ! -s LOCAL_LVMETAD || \
|
||||
(kill -TERM "$(cat LOCAL_LVMETAD)" && sleep 1 &&
|
||||
kill -KILL "$(cat LOCAL_LVMETAD)" 2> /dev/null) || true
|
||||
|
||||
dm_table | not egrep -q "$vg|$vg1|$vg2|$vg3|$vg4" || {
|
||||
# Avoid activation of dmeventd if there is no pid
|
||||
|
Loading…
Reference in New Issue
Block a user