From: Kamalesh Babulal Date: Wed, 4 Jun 2025 14:58:31 +0000 (+0530) Subject: ftests/run.py: terminate processes that exceed timeout X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edd5497c2027818aebba2c5eb28c9b27eb0d3efa;p=thirdparty%2Flibcgroup.git 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 --- 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