zephyr/scripts/pylib/twister
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
..
twisterlib scripts: Add invariant log closing 2025-03-13 16:53:55 +00:00
__init__.py twister: Refactor python module to follow PEP8 rules 2025-03-07 19:49:42 +01:00
expr_parser.py twister: add dt_node_prop_enabled support 2024-12-20 18:30:43 +01:00
scl.py