summaryrefslogtreecommitdiff
path: root/test/fs.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-01 10:38:06 -0300
committerGabriel Schneider <[email protected]>2026-10-01 10:46:01 -0300
commit25844b54fd08dd9cadff2275f2161ee5dd316395 (patch)
treeadc48e423cae2f4112051e3d40f16e362aa013ca /test/fs.py
parent860796aa8832bb9bf32b2770bc0584b962bb51b7 (diff)
downloadpardes-25844b54fd08dd9cadff2275f2161ee5dd316395.tar.gz
pardes-25844b54fd08dd9cadff2275f2161ee5dd316395.zip
`pardes --wait` whose $PARDES_9P no longer answers says the session is gone, exit 1, instead of drawing a screen of its own in the asker's terminal
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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')