summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-02 00:56:05 -0300
committerGabriel Schneider <[email protected]>2026-10-02 00:56:05 -0300
commit6637d8df988f8cff9d054c39d3781f4a1ede3b8e (patch)
tree113f51d41bbfd75df9352daaf0880b962274eab4 /test
parentc6be02adeb930834aeb7d8c484e89106023550d1 (diff)
downloadpardes-6637d8df988f8cff9d054c39d3781f4a1ede3b8e.tar.gz
pardes-6637d8df988f8cff9d054c39d3781f4a1ede3b8e.zip
pardes --wait with no FILE says it needs one; --detach over a name another session's socket holds (a plain session is named by its pid) says so plainly, and any other failure of it in words, never a Zig error trace
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/fs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fs.py b/test/fs.py
index f954b508..97af9e6b 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -1595,6 +1595,9 @@ def test(binary, quic=False):
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
+ # --wait with no FILE says it needs one, and waits on nothing.
+ bare = subprocess.run([binary, '--wait'], cwd=root, env=env, capture_output=True, timeout=10)
+ assert bare.returncode == 1 and b'--wait needs a FILE' in bare.stderr, bare
# `--` ends the options: a name starting with a dash is a name.
dash = root / '-dash.txt'
dash.write_bytes(b'dash\n')