summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cross_replay.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/cross_replay.py b/test/cross_replay.py
index 26304d9a..6c5a1e4d 100644
--- a/test/cross_replay.py
+++ b/test/cross_replay.py
@@ -17,6 +17,11 @@ The session meets the host's failures, whose errors cross by name: a Look
of a fifo (a read the host refuses) and of a directory, a stat and a read
under /os over 9P, a Save into a file as if it were a directory and a
Restore of a dump that is not there (errors the host reports, anyerrors).
+And it holds what a digest must name the same in every build: a
++LocationsConfig, whose origin is a Builtin, and a file pane renamed (H19:
+no Linux client could join a FreeBSD session so). ponytail: no Grep or
+Find, which a 9P write runs on the loop, its reads no tape site (a replay
+of it panics, by any build).
"""
import os
import shutil
@@ -70,12 +75,16 @@ def record(binary, out):
started.append(int(status['pid']))
pane = next(int(row.split()[0]) for row in c.read('/index').splitlines() if row.split()[1] == b'text')
for line in (f'Look {root / "fifo"}', f'Look {root / "dir"}', f'Save {root / "a.txt" / "x"}',
- f'Restore {root / "nothing.dump"}'):
+ f'Restore {root / "nothing.dump"}', 'LocationsConfig'):
try:
c.write(f'/pane/{pane}/exec', line.encode() + b'\n')
except Exception:
pass # said as the write's error: a failure is what is wanted
time.sleep(.3)
+ # A pane a word made (+LocationsConfig: its origin a Builtin,
+ # which a FreeBSD build numbers otherwise), and a file renamed.
+ c.write(f'/pane/{pane}/ctl', f'name {root / "renamed.txt"}\n'.encode())
+ time.sleep(.3)
c.stat(f'/os{root / "a.txt"}')
assert c.read(f'/os{root / "a.txt"}') == b'hello\n'
for _ in range(2): # the failed Save left the text edited: Exit asks again