summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-07-28 11:08:42 +0300
committerLars Wirzenius <liw@liw.fi>2021-07-28 13:01:27 +0300
commit54b8f9cc65f6d440ee57725fa95b297e65e5a9cc (patch)
treedd1b57f3dfb3276cd159ef66a062c349ba65a8ce /share
parentc54626006a449a2342525a82f78a313fca7fff41 (diff)
downloadsubplot-54b8f9cc65f6d440ee57725fa95b297e65e5a9cc.tar.gz
test: log stderr when asserting that daemon didn't fail to start
Sponsored-by: author
Diffstat (limited to 'share')
-rw-r--r--share/python/lib/daemon.py5
1 files changed, 5 insertions, 0 deletions
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