summaryrefslogtreecommitdiff
path: root/test/fs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs.py')
-rw-r--r--test/fs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fs.py b/test/fs.py
index 33abb835..204f4b37 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -1424,6 +1424,11 @@ def test(binary, quic=False):
assert waiting.poll() is None, waiting.stderr.read()
client.remove(f'/pane/{far_pane}')
assert waiting.wait(timeout=5) == 0
+ # --wait with a $PARDES_9P that answers no more: said, exit 1,
+ # never a screen of its own drawn in the asker's terminal.
+ dead_env = dict(outside_env, PARDES_9P=str(root / 'pardes-9p-gone.sock'))
+ gone = subprocess.run([binary, '--wait', str(far)], cwd=root, env=dead_env, capture_output=True, timeout=10)
+ assert gone.returncode == 1 and b'does not answer' in gone.stderr, gone
# `--` ends the options: a name starting with a dash is a name.
dash = root / '-dash.txt'
dash.write_bytes(b'dash\n')