summaryrefslogtreecommitdiff
path: root/test/selfmount.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 21:19:47 -0300
committerGabriel Schneider <[email protected]>2026-11-04 21:20:02 -0300
commite67a1a561d9a9a7269bcc7c9af5678d3f50a95cb (patch)
tree195593cc6ae9d72fcd1e37f08637c5eb038920be /test/selfmount.py
parentd6883afab40fb8cfcd40fc6abcde1aaf74b8b108 (diff)
downloadpardes-e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb.tar.gz
pardes-e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb.zip
main: the --tty flag again (it starts one shell pane in tty mode, the pane's raw mode, which the user keeps as tty, not the frontend): --tui and the old-flag case gone, the launch lines, the process runner's startTty and the cases' tty sessions as they were; the changelog says the frontend is the tui (-Dplatform=tui, src/tui/), the Tty builtin is Term and Tty still runs it; core, behaviour, fs-unit, pane and process tests (tui 36 of 36), all 113 snap scripts and the gui build pass
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/selfmount.py')
-rw-r--r--test/selfmount.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/selfmount.py b/test/selfmount.py
index 1df17226..61d32523 100644
--- a/test/selfmount.py
+++ b/test/selfmount.py
@@ -37,7 +37,7 @@ def unix_mount(ns, binary, served, env, name, fixture):
env = dict(env, PARDES_DUMP=f'/tmp/{second}.dump.zon')
pid, master = pty.fork()
if pid == 0:
- os.execve(ns, ['9ns', '--unix', served, '--', binary, '--tui', '--9p=' + second, str(fixture)], env)
+ os.execve(ns, ['9ns', '--unix', served, '--', binary, '--tty', '--9p=' + second, str(fixture)], env)
fcntl.ioctl(master, termios.TIOCSWINSZ, struct.pack('HHHH', 30, 100, 0, 0))
os.set_blocking(master, False)
try:
@@ -83,7 +83,7 @@ def run(binary):
env['PARDES_LSP_' + language] = ''
pid, master = pty.fork()
if pid == 0:
- os.execve(ns, ['9ns', '--mntgen', '--', binary, '--tui', '--9p=' + name, str(fixture)], env)
+ os.execve(ns, ['9ns', '--mntgen', '--', binary, '--tty', '--9p=' + name, str(fixture)], env)
fcntl.ioctl(master, termios.TIOCSWINSZ, struct.pack('HHHH', 30, 100, 0, 0))
os.set_blocking(master, False)
tail = bytearray()
@@ -276,7 +276,7 @@ def run(binary):
other_env = dict(env, PARDES_DUMP=f'/tmp/{other}.dump.zon')
other_pid, other_master = pty.fork()
if other_pid == 0:
- os.execve(binary, [binary, '--tui', '--9p=' + other], other_env)
+ os.execve(binary, [binary, '--tty', '--9p=' + other], other_env)
os.set_blocking(other_master, False)
deadline = time.monotonic() + 15
while not os.path.exists(other_sock) and time.monotonic() < deadline: