From 03460fe3d2657c626d406e57d75f6f9c6fa4338e Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 28 May 2019 00:21:43 +0200 Subject: tests: don't fail when a pid can't be killed. (Usually on ESRCH.) --- tests/00-db-exclusive/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/00-db-exclusive') diff --git a/tests/00-db-exclusive/run b/tests/00-db-exclusive/run index 1ae27b6..1528b3b 100644 --- a/tests/00-db-exclusive/run +++ b/tests/00-db-exclusive/run @@ -9,8 +9,8 @@ interimap interimap --watch=60 & pid=$! cleanup() { # kill interimap process and its children - pkill -P "$pid" -TERM - kill -TERM "$pid" + pkill -P "$pid" -TERM || true + kill -TERM "$pid" || true wait } trap cleanup EXIT INT TERM -- cgit v1.2.3