zephyr/scripts/tests
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
build_helpers
twister drivers entropy: fake_entropy_native_posix rename to _native_sim 2025-03-08 03:38:13 +01:00
twister_blackbox scripts: Add invariant log closing 2025-03-13 16:53:55 +00:00