1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

test: It is not an error for a test daemon to exit before teardown.

This commit is contained in:
Petr Rockai 2014-10-01 11:53:24 +02:00
parent 78ba413ed1
commit 45e2aee8f9

View File

@ -214,7 +214,7 @@ kill_sleep_kill_() {
slow=$2 slow=$2
if test -s $pidfile ; then if test -s $pidfile ; then
pid=$(< $pidfile) pid=$(< $pidfile)
kill -TERM $pid kill -TERM $pid || return 0
if test $slow -eq 0 ; then sleep .1 ; else sleep 1 ; fi if test $slow -eq 0 ; then sleep .1 ; else sleep 1 ; fi
kill -KILL $pid 2>/dev/null || true kill -KILL $pid 2>/dev/null || true
wait=0 wait=0