summaryrefslogtreecommitdiff
path: root/test/daemon.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-22 23:20:38 -0300
committerGabriel Schneider <[email protected]>2026-11-22 23:20:38 -0300
commite6dd9c5c3a60e3609e99ab2076b5a2509a014a66 (patch)
tree59e10d535fbb5ddf1a971c391e0e6b0981a6d409 /test/daemon.py
parent6270f531cd89130a26ee3d5423a740db707f8888 (diff)
parent9e5b54cfdf73728745d2aeaafac00d823114543e (diff)
downloadpardes-e6dd9c5c3a60e3609e99ab2076b5a2509a014a66.tar.gz
pardes-e6dd9c5c3a60e3609e99ab2076b5a2509a014a66.zip
integration (a base for the next rounds, not yet the gathered line): the pair's round 12 on the viewport's line with a client's way back: pardes-m60-base (`pyquvrsv`: pardes-viewport + pardes-upgrade-back) and pardes-pair-12 (`mlutslkp` on `ntlpyokw` on `zsquynqy` on `wowqsyxt`, on pardes-raw-tty: a 9P request that changes the core waits for the pty output read before it (`Turn.awaitOutput`: pagercolor's cause on both paths); a pair's client takes the tests' clock; the pair rows name the side that went; the soak with a pair among its sides); no conflict; core-test 918/1078 (160 skipped), shell-test 1120/1123 (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/daemon.py')
-rw-r--r--test/daemon.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/daemon.py b/test/daemon.py
index d1406ae1..fcaae3d7 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)