diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 09:47:53 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 6e2ed2e057ba95b3a86186c255d1965e1861bdf7 (patch) | |
| tree | 5438ce5465dfa24ca680a94241150f959d1cf3ec /test/fs.py | |
| parent | 7a18df8aab1638622ab93fd3203930399c680544 (diff) | |
| download | pardes-6e2ed2e057ba95b3a86186c255d1965e1861bdf7.tar.gz pardes-6e2ed2e057ba95b3a86186c255d1965e1861bdf7.zip | |
A shell started again by pty/ctl exec is guarded against the rename flap as a new one is
The guard that keeps a shell from taking this process's directory before
its chdir lasted only until the first shell spoke; a shell started again
in the same pane (pty/ctl exec) was asked with the old shell's word still
standing. A spawn resets it. fs.py's naming test restarts one too.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/fs.py')
| -rw-r--r-- | test/fs.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -508,6 +508,9 @@ def new_terminals_named_once(binary): client.write('/pane/1/ctl', b'Tty fish\n') made += [s for s in (int(row.split()[0]) for row in client.read('/index').splitlines()) if s not in before] time.sleep(1.5) # their shells start and say where they are + # A shell started again by pty/ctl exec: named as it was. + client.write(f'/pane/{made[0]}/pty/ctl', b'exec\n') + time.sleep(1.5) log = client.read('/log').decode() for serial in made: assert f'\nrename {serial} ' not in '\n' + log, (serial, log) |
