From 54b8f9cc65f6d440ee57725fa95b297e65e5a9cc Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 28 Jul 2021 11:08:42 +0300 Subject: test: log stderr when asserting that daemon didn't fail to start Sponsored-by: author --- share/python/lib/daemon.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'share') diff --git a/share/python/lib/daemon.py b/share/python/lib/daemon.py index 5ce4bbc..0573a64 100644 --- a/share/python/lib/daemon.py +++ b/share/python/lib/daemon.py @@ -223,6 +223,11 @@ def daemon_start_fails_with(ctx, message=None): def daemon_start_succeeds(ctx): daemon = ctx.declare("_daemon") logging.debug(f"daemon_start_succeeds: {daemon}") + for name in daemon.keys(): + if isinstance(daemon[name], dict): + logging.debug(f"name={name}") + stderr = daemon_get_stderr(ctx, name) + logging.debug(f"daemon_start_succeeds: {name}:\n{stderr}") assert "_start_error" not in daemon -- cgit v1.2.1