From 5455ce91abc01981260c55b405b2f4d9d36769cf Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 4 Jul 2025 05:21:48 +0530 Subject: [PATCH] ftests/cgroup: Add timeout to cgrulesengd cgrulesengd -n (nodaemon mode) runs indefinitely until it is terminated with SIGKILL. To handle this, introduce a 20-second timeout that is passed to __run(), which in turn calls subproc.kill() to terminate cgrulesengd once the timer expires. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/ftests/cgroup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ftests/cgroup.py b/tests/ftests/cgroup.py index ba33d108..842dfeff 100644 --- a/tests/ftests/cgroup.py +++ b/tests/ftests/cgroup.py @@ -705,7 +705,7 @@ class Cgroup(object): 'supported' ) else: - Run.run(cmd, shell_bool=True) + Run.run(cmd, shell_bool=True, timeout=20) def start_cgrules(self, config): Cgroup.init_cgrules(config) -- 2.47.2