summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/fs.py b/test/fs.py
index 816f416c..c56c6298 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -200,7 +200,7 @@ def discovery(binary, embedded=False):
assert newest(client) == second, 'a stat of new made a pane'
# What the editor said is in the stream too.
def pane_event():
- while (record := client.read_fid(log, frozen)).startswith(b'msg '):
+ while (record := client.read_fid(log, frozen)).startswith((b'msg ', b'err ')):
pass
return record
assert pane_event() == f'new {first} {root}/+New\n'.encode()
@@ -356,6 +356,8 @@ def discovery(binary, embedded=False):
except OSError as refused:
assert why in str(refused), refused
assert client.read(f'/pane/{scratch}/body') == b'HOWDY world\nsecond line\n'
+ # Through a mount both read as EINVAL; the log says which and why.
+ assert f'err {scratch} addr: no match for regexp\n'.encode() in client.read('/log')
client.remove(f'/pane/{scratch}')
print('9P discovery: listing/stat/find are inert; new, remove, look, exec, name, sel, log, ctl lock, focus, the ctl split and commands behave')