�
jY�j� � �, � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
d\ ZZej j dej j! d� � Z G d� d� Zd� Zd � Zd
� Zedk( r ej. e� � yy)aL Drive Quinjet through a real pty and read back what it drew.
Every terminal-level claim about the pull-request pane in this repository was
checked with this: it opens a pull request against live GitHub, so it needs a
working `gh` login and network and cannot run in CI. Keep it for the things a
unit test cannot see, such as which requests overlap and how long a pane waits.
python3 scripts/drive.py open <repo> <pr>
python3 scripts/drive.py switch <repo> <first> <second>
`open` reports how long the pane takes to answer from a cold cache. `switch`
opens one pull request, waits for its log warm-up to start, then switches to
another and reports whether the second one had to queue behind the first.
Requires pyte: python3 -m venv .venv && .venv/bin/pip install pyte
Set QUINJET to test a build other than the installed binary.
� N)� �- �QUINJETz~/.cargo/bin/quinjetc �: � e Zd Zd� Zd� Zd� Zd d�Zd� Zd
d�Zd� Z y)�Sessionc � � t j � \ }}t j |t j
t
j dt t dd� � || _
t j t g||||t t j d�� t j"