summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:13:17 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:40:08 -0300
commit684dd340da01a60525d45e5a4f4c64f9fb79be1d (patch)
tree7ce1fae0242450cab5d3f0857ca2a7b0ed168474 /test
parent6cf113c8bf86c602669c2cfe0da422988047afaf (diff)
downloadpardes-684dd340da01a60525d45e5a4f4c64f9fb79be1d.tar.gz
pardes-684dd340da01a60525d45e5a4f4c64f9fb79be1d.zip
gui: the headless grid host goes (PARDES_TEST_GRID: runGrid, its host table, its frame dump and its test), with --gui-grid in test/agent_session.py and its test, its only user, run by hand; the test feed now says only whether its input ended
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test')
-rw-r--r--test/agent_session.py4
-rw-r--r--test/agent_session_test.py3
2 files changed, 2 insertions, 5 deletions
diff --git a/test/agent_session.py b/test/agent_session.py
index aa87c845..ec64c011 100644
--- a/test/agent_session.py
+++ b/test/agent_session.py
@@ -47,8 +47,7 @@ def run(args, command, status):
signal.setitimer(signal.ITIMER_REAL, args.timeout)
try:
context = session(str(args.binary.resolve()), root, 'agent-session', tty=True,
- socket_name='agent-session', launch=['--tty', '--9p=agent-session'],
- inherited={'PARDES_TEST_GRID': '1'} if args.gui_grid else {})
+ socket_name='agent-session', launch=['--tty', '--9p=agent-session'])
client, _ = context.__enter__()
try:
try:
@@ -137,7 +136,6 @@ def main(argv):
parser.add_argument('--timeout', type=float, default=60, help='interaction deadline in seconds, at most 600')
parser.add_argument('--min-rows', type=int, default=0)
parser.add_argument('--prepare-key', help='one hex control byte before history/probe checks; never CR or LF')
- parser.add_argument('--gui-grid', action='store_true', help='use the GUI build headless grid host')
if '--' not in argv:
parser.error('supply the interactive command after --')
split = argv.index('--')
diff --git a/test/agent_session_test.py b/test/agent_session_test.py
index 6dc385ab..6b0d417c 100644
--- a/test/agent_session_test.py
+++ b/test/agent_session_test.py
@@ -80,10 +80,9 @@ def check(binary, options, command, expected, phase=None, cleanup_failure=False)
def main():
parser = argparse.ArgumentParser()
parser.add_argument('binary', type=Path)
- parser.add_argument('--gui-grid', action='store_true')
args = parser.parse_args()
binary = str(args.binary.resolve())
- ready = ['--ready', 'AGENT_READY', *(['--gui-grid'] if args.gui_grid else [])]
+ ready = ['--ready', 'AGENT_READY']
command = ['/bin/sh', '-c', 'printf "AGENT_READY> "; read answer']
for options, argv in [
([], command),