diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/fs.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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') |
