zephyr/scripts/pylib
Lukasz Mrugala ffe72a49bf scripts: Add invariant log closing
If BB tests failed, crashed, etc., log handles
could linger and crash test cleanup.
Adding log closing to a `finally` section
should prevent those issues.

Loggers should not be set up as globals,
as it makes testing much harder.
Running multiple Twisters may cause for the
logfiles to be still "in use".

When exiting main, close all logfiles
and remove their handlers from all loggers.
Do that for conftest as well.

Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
2025-03-13 16:53:55 +00:00
..
build_helpers scripts: pylib: build_helpers: flash_order fix 2023-10-10 15:55:58 +03:00
pytest-twister-harness drivers uart_native_posix: rename to native_pty and support N instances 2025-03-11 18:54:02 +01:00
shell-twister-harness twister: shell harness with commands alongside the harness_config 2025-02-14 19:14:38 +00:00
twister scripts: Add invariant log closing 2025-03-13 16:53:55 +00:00