From 45e2aee8f9173cc2858da93a4bb9bc289a36bf9d Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Wed, 1 Oct 2014 11:53:24 +0200 Subject: [PATCH] test: It is not an error for a test daemon to exit before teardown. --- test/lib/aux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 3ef2da02e..9241fba45 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -214,7 +214,7 @@ kill_sleep_kill_() { slow=$2 if test -s $pidfile ; then pid=$(< $pidfile) - kill -TERM $pid + kill -TERM $pid || return 0 if test $slow -eq 0 ; then sleep .1 ; else sleep 1 ; fi kill -KILL $pid 2>/dev/null || true wait=0