aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/test_helper.bash8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/test_helper.bash b/test/functional/test_helper.bash
index a25035e77..239160f2c 100644
--- a/test/functional/test_helper.bash
+++ b/test/functional/test_helper.bash
@@ -12,7 +12,13 @@ function run_rspamd() {
function teardown() {
- pkill -TERM rspamd || true
+ (
+ pgrep rspamd > /dev/null 2>&1
+ while [ $? -eq 0 ] ; do
+ pkill -TERM rspamd || true
+ pgrep rspamd > /dev/null 2>&1
+ done
+ ) || true
}
function clear_stats() {