mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-11 23:36:51 +02:00
Register fixture teardown at start time in a LIFO stack, so every test tears down its fixture on every exit path, not only in one shared afterEach that skipped 12 of 15 starts. Hold the fixture state in memory so teardown does not depend on the state file the directory removal deletes. Give stopSshEnvLabFixture a bounded SIGTERM-to-SIGKILL escalation and let it accept an in-memory state as well as a state path. Re-check process identity before every signal, and remove the fixture root directory only after the listener is confirmed gone. Co-authored-by: Paperclip <noreply@paperclip.ing>