diff options
Diffstat (limited to 'test/ui_review.py')
| -rw-r--r-- | test/ui_review.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ui_review.py b/test/ui_review.py index a1cdcdeb..3232c519 100644 --- a/test/ui_review.py +++ b/test/ui_review.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Capture a read-only Agave review in an isolated SDL or TTY session. +"""Capture a read-only Agave review in an isolated SDL or TUI session. python3 test/ui_review.py zig-out/bin/pardes-gui /tmp/pardes-review \\ --project /path/to/agave --theme orchard @@ -36,7 +36,7 @@ def command(client, serial, text): """Execute a temporary tag command without changing source contents.""" tag = f'/pane/{serial}/tag' before = client.read(tag).rstrip(b'\n') - tail_start = before.index(b'Save Tty Del') + tail_start = before.index(b'Save Term Del') while tail_start and before[tail_start - 1:tail_start] == b' ': tail_start -= 1 client.write(tag, b' ' + text.encode()) @@ -120,10 +120,10 @@ def run(args): if grep_pane: (root / 'grep-results.txt').write_bytes(client.read(f'/pane/{grep_pane}/body')) capture(client, root, '03-grep', not args.tty) - command(client, source, 'Tty') + command(client, source, 'Term') terminal = require(wait_for(lambda: next((serial for serial in panes(client) if 'pty' in client.list(f'/pane/{serial}')), None)), - 'Tty did not create a terminal') + 'Term did not create a terminal') if terminal: client.write(f'/pane/{terminal}/pty/data', b"printf '\\033[1;36mAgave workspace\\033[0m\\n'; pwd; printf '\\033[32mRead-only UI review ready\\033[0m\\n'\r") require(wait_for(lambda: b'\nRead-only UI review ready\n' in |
