summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 20:00:06 -0300
committerGabriel Schneider <[email protected]>2026-10-30 20:00:06 -0300
commit257eec0ae161b28f69b6c6fa8aae03ecc1bf85f0 (patch)
tree4bc9827a050b0f0999bf5cd5278da88aeb3b080a
parent725e6d4abec56f41688bfb979fbe3b1eadad4729 (diff)
downloadpardes-257eec0ae161b28f69b6c6fa8aae03ecc1bf85f0.tar.gz
pardes-257eec0ae161b28f69b6c6fa8aae03ecc1bf85f0.zip
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 <[email protected]>
-rw-r--r--test/soak.py8
1 files changed, 8 insertions, 0 deletions
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)