From: David Zafman Date: Mon, 4 Feb 2019 21:30:11 +0000 (-0800) Subject: test: Fix kill_daemon() to check after last large sleep X-Git-Tag: v14.1.0~198^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bca4fe98b158c106a59b7279f2cb8259e942c8f8;p=ceph.git test: Fix kill_daemon() to check after last large sleep Signed-off-by: David Zafman --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index f38d1d8fb9d6..1a613c34fa79 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -256,7 +256,9 @@ function kill_daemon() { local send_signal=$2 local delays=${3:-0.1 0.2 1 1 1 2 3 5 5 5 10 10 20 60 60 60 120} local exit_code=1 - for try in $delays ; do + # In order to try after the last large sleep add 0 at the end so we check + # one last time before dropping out of the loop + for try in $delays 0 ; do if kill -$send_signal $pid 2> /dev/null ; then exit_code=1 else