From edd5497c2027818aebba2c5eb28c9b27eb0d3efa Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Wed, 4 Jun 2025 20:28:31 +0530 Subject: [PATCH] ftests/run.py: terminate processes that exceed timeout Some commands, like 'cgrulesengd' in non-daemon mode, continue running until explicitly terminated. Currently, we catch exceptions for timeouts but do not terminate the lingering process. This patch ensures that such processes are properly killed after the timeout. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/ftests/run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ftests/run.py b/tests/ftests/run.py index deddde17..e063a4cd 100644 --- a/tests/ftests/run.py +++ b/tests/ftests/run.py @@ -49,6 +49,9 @@ class Run(object): ret = -1 else: ret = 0 + + # kill the process, that has exceeded the timeout + subproc.kill() else: out, err = subproc.communicate() ret = subproc.returncode -- 2.47.3