ARM-software / devlib

Library for interaction with and instrumentation of remote devices.
Apache License 2.0
47 stars 78 forks source link

Fix __del__ excep #685

Closed douglas-raillard-arm closed 5 months ago

douglas-raillard-arm commented 6 months ago

Fixes https://github.com/ARM-software/devlib/issues/684

This PR is untested for now.

douglas-raillard-arm commented 6 months ago

PR updated to also disconnect upon process exit, before the modules are torn down. This should prevent getting exceptions logged in __del__ in common cases, for anything that is cleaned-up in Target.disconnect() (which includes all current connection objects)