summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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)