summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-01 04:54:48 -0300
committerGabriel Schneider <[email protected]>2026-10-01 04:54:48 -0300
commit2488df529cde2994c37f385cefca4db1837ed9a3 (patch)
tree1ce74ed008f98efde5a5a79f24b2e91ae0f0b998 /test
parente7aaeca8e12887e2b90aae257c41efce6847c26d (diff)
downloadpardes-2488df529cde2994c37f385cefca4db1837ed9a3.tar.gz
pardes-2488df529cde2994c37f385cefca4db1837ed9a3.zip
/index names a command's pane kind cmd, not term: a script picking a terminal by kind no longer picks a pane with no shell
A command pane runs one line and takes no typing; a script choosing `$2=="term"` to type into got one. Its kind is now cmd; a shell's stays term. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/fs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fs.py b/test/fs.py
index 483ef320..f24e2550 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -393,7 +393,8 @@ def discovery(binary, embedded=False):
while client.read('/log').decode().count('\nexit ') <= seen:
assert time.monotonic() < deadline, 'diff -u never ended'
time.sleep(.05)
- ran = [row.split()[0] for row in client.read('/index').decode().splitlines() if row.split()[1] == 'term']
+ # A command's pane is kind cmd, not term: no shell to type into.
+ ran = [row.split()[0] for row in client.read('/index').decode().splitlines() if row.split()[1] == 'cmd']
shown = client.read(f'/pane/{ran[-1]}/body').decode()
assert '+++ diff-new.txt' in shown and '\t' not in shown, shown
client.write(f'/pane/{ran[-1]}/look', b'+TWO\n')