diff options
Diffstat (limited to '')
| -rwxr-xr-x | scripts/tests/test-focus.py (renamed from scripts/test-focus.py) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/test-focus.py b/scripts/tests/test-focus.py index e1bbe2d..cfa317a 100755 --- a/scripts/test-focus.py +++ b/scripts/tests/test-focus.py | |||
| @@ -2,16 +2,17 @@ | |||
| 2 | """Drive the focus-routing gate: 3 windows, type markers, verify routing. | 2 | """Drive the focus-routing gate: 3 windows, type markers, verify routing. |
| 3 | 3 | ||
| 4 | Connects to the QEMU monitor once and keeps the socket open (the per-call | 4 | Connects to the QEMU monitor once and keeps the socket open (the per-call |
| 5 | scripts/sendkeys.py pattern loses the socket when the monitor resets). | 5 | sendkeys.py pattern loses the socket when the monitor resets). |
| 6 | 6 | ||
| 7 | Usage: python3 scripts/test-focus.py /tmp/qmon.sock | 7 | Usage: start the guest with `./scripts/run.sh --monitor`, then |
| 8 | python3 scripts/tests/test-focus.py [/tmp/rsdos-monitor.sock] | ||
| 8 | """ | 9 | """ |
| 9 | import socket | 10 | import socket |
| 10 | import sys | 11 | import sys |
| 11 | import time | 12 | import time |
| 12 | 13 | ||
| 13 | sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | 14 | sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) |
| 14 | sock.connect(sys.argv[1] if len(sys.argv) > 1 else "/tmp/sysboot-mon.sock") | 15 | sock.connect(sys.argv[1] if len(sys.argv) > 1 else "/tmp/rsdos-monitor.sock") |
| 15 | 16 | ||
| 16 | 17 | ||
| 17 | def sk(k, d=0.35): | 18 | def sk(k, d=0.35): |
