From 257eec0ae161b28f69b6c6fa8aae03ecc1bf85f0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 20:00:06 -0300 Subject: test/soak.py: a soak's session gets a workspace tag without Exit, Dump and their like: the monkey's keys land in tags, and minutes of them ran Exit there (the box's session quit cleanly 88 s in, its stats written, no panic) Co-Authored-By: Claude Opus 5.5 --- test/soak.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/soak.py b/test/soak.py index b30254a1..1a62a5f6 100644 --- a/test/soak.py +++ b/test/soak.py @@ -864,6 +864,12 @@ class Run: wait_for('the relay', at.exists) return at + def safe_tags(self): + """The workspace tag without Exit, Dump and the like: the monkey's keys + land in tags too, and an Enter there runs what the line names (a person + does not type Exit by chance; a monkey does, given minutes).""" + self.nine_write('/tag', b'Newcol Joincol Find Grep Help Themes') + def pane_count(self): """The session's panes (a script's view of /index), cached a second: a Del that closed the last one would end the session.""" @@ -924,6 +930,7 @@ class Run: status = self.nine_read('/status').decode() self.session_pid = int(dict(line.split(maxsplit=1) for line in status.splitlines())['pid']) self.pids.append(self.session_pid) + self.safe_tags() # Two shells beside the directory, as the user's had. for _ in range(self.shells): self.nine_write('/pane/1/exec', b'Tty\n') @@ -1016,6 +1023,7 @@ class BoxRun(Run): wait_for('the 9P forward', self.nine_sock.exists, timeout=20) status = wait_for('the session over the 9P forward', lambda: self.nine_read('/status'), timeout=30).decode() self.session_pid = int(dict(line.split(maxsplit=1) for line in status.splitlines())['pid']) + self.safe_tags() for _ in range(self.shells): self.nine_write('/pane/1/exec', b'Tty\n') time.sleep(1) -- cgit v1.3