Skip to content

ast10x0/harness: reap orphaned pi_test_runner processes holding the UARTs - #476

Open
JesseMelon wants to merge 1 commit into
OpenPRoT:mainfrom
JesseMelon:harness-reap-orphans
Open

JesseMelon wants to merge 1 commit into
OpenPRoT:mainfrom
JesseMelon:harness-reap-orphans

Conversation

@JesseMelon

Copy link
Copy Markdown
Contributor

A pi_test_runner.py on the Pi does not die when its SSH client drops (e.g. Ctrl-C
on the host). The orphan keeps /dev/ttyUSB* open, which silently swallows the
bootloader handshake of every subsequent run — the next test simply fails to flash,
with no clear indication why.

Reap stale runners at both ends of _run_remote: once after the lock is acquired and
again in the cleanup path. Because the reap only runs while holding the lock, any
match is by definition an orphan. A one-second sleep lets the kernel release the
serial ports before they are reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant