tractor/tests/devx
Gud Boi 7145fa364f Add `SIGINT` cleanup to `spawn` fixture in `devx/conftest`
Convert `spawn` fixture to a generator and add post-test graceful
subproc cleanup via `SIGINT`/`SIGKILL` to avoid leaving stale `pexpect`
child procs around between test runs as well as any UDS-tpt socket files
under the system runtime-dir.

Deats,
- convert `return _spawn` -> `yield _spawn` to enable
  post-yield teardown logic.
- add a new `nonlocal spawned` ref so teardown logic can access the last
  spawned child from outside the delivered spawner fn-closure.
- add `SIGINT`-loop after yield with 5s timeout, then
  `SIGKILL` if proc still alive.
- add masked `breakpoint()` and TODO about UDS path cleanup

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-02-19 13:55:02 -05:00
..
__init__.py Officially test proto-ed `stackscope` integration 2025-03-27 13:24:25 -04:00
conftest.py Add `SIGINT` cleanup to `spawn` fixture in `devx/conftest` 2026-02-19 13:55:02 -05:00
test_debugger.py Add a root-already-cancelled crash handling test 2025-08-20 10:18:52 -04:00
test_pause_from_non_trio.py Mask ctlc borked REPL tests 2025-03-27 13:24:25 -04:00
test_tooling.py Use `._supervise._shutdown_msg` in tooling test 2025-08-15 16:29:05 -04:00