summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/daemon.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/daemon.py b/test/daemon.py
index 9e0047e5..1c86e5ad 100644
--- a/test/daemon.py
+++ b/test/daemon.py
@@ -925,7 +925,11 @@ def pair_rows(binary):
t, c, nine, session, pane = started('lone', dict(env, PARDES_DAEMON='off'))
typed_detach(t, nine, pane)
time.sleep(1)
- assert c.poll() is None and alive(session), 'a Detach with no daemon is refused'
+ # Which went, if one did: the client's exit and its screen's last
+ # words, the session's life (its stderr is /dev/null: no log).
+ went = [w for w, gone in (('the client', c.poll() is not None), ('the session', not alive(session))) if gone]
+ assert not went, (f'a Detach with no daemon is refused: {" and ".join(went)} went (client exit {c.poll()}, '
+ f'session {"alive" if alive(session) else "gone"}); the terminal\'s last bytes: {t.text()[-600:]!r}')
nine.socket.close()
t.close()
terms.remove(t)