From d55026fe1351a7c38bd69952975e2461cf5db2a5 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Mon, 12 May 2025 15:53:35 +0300 Subject: [PATCH] Print something to Docker logs when service is dead No output in Docker logs makes all log readers stuck in a read() call. Printing garbage lines allows for non-asyncio timeouts to kick in. Signed-off-by: Vitaliy Potyarkin --- src/frostfs_testlib/component_tests/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frostfs_testlib/component_tests/container.py b/src/frostfs_testlib/component_tests/container.py index f6561da..f4769dc 100644 --- a/src/frostfs_testlib/component_tests/container.py +++ b/src/frostfs_testlib/component_tests/container.py @@ -44,7 +44,7 @@ class ContainerizedService: if self._testcontainer is None: self.create() self.stop() - self._pid1(f"{{ {self.command} ; }} &") + self._pid1(f"{{ {self.command}; while sleep 1; do echo Service died.; done; }} &") def stop(self): self._pid1(