zephyr/scripts
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 scripts: build: Add optimizations in file2hex.py to gzip path as well 2025-03-07 19:53:34 +01:00
checkpatch arch: remove z_arch_esf_t 2025-01-23 16:32:36 +01:00
ci scripts: ci: check_compliance: Add sysbuild Kconfig exclusions 2025-03-05 09:58:26 +00:00
coccinelle
coredump scripts: coredump: Fix loading coredumps when thread info is enabled. 2024-12-09 22:06:23 +00:00
dts devicetree: Add filename and line number tracking for nodes & properties 2025-02-26 22:02:39 +00:00
footprint scripts: footprint: Exclude data section from rom_report if XIP=n 2025-03-08 03:37:27 +01:00
generate_usb_vif python: Format and sort imports 2024-11-25 10:07:13 +01:00
gitlint
kconfig scripts: kconfig: introduce dt_nodelabel_exists 2025-03-11 18:54:57 +01:00
logging/dictionary scripts: logging: dictionary: fix parsing of DWARF v5 2024-12-20 12:36:46 +01:00
native_simulator native_simulator: Get latest from upstream 2025-03-10 06:52:19 +01:00
net
profiling
pylib scripts: Add invariant log closing 2025-03-13 16:53:55 +00:00
pylint/checkers
release
ruff scripts: Add helper scripts for ruff baseline excludes 2024-11-19 18:36:54 -05:00
schemas twister: shell harness with commands alongside the harness_config 2025-02-14 19:14:38 +00:00
support
tests scripts: Add invariant log closing 2025-03-13 16:53:55 +00:00
tracing
utils scripts: utils: posix: add dry-run option and improve logging 2025-03-12 19:03:52 +01:00
west_commands scripts and soc: Mark MD5 and SHA1 usage as not for security 2025-03-11 04:52:15 +01:00
.gitignore
check_maintainers.py python: Format and sort imports 2024-11-25 10:07:13 +01:00
checkpatch.pl checkpatch: Allow __BYTE_ORDER__ and __aligned__ in toolchain files 2025-02-14 19:12:44 +00:00
checkstack.pl
coccicheck
dump_bugs_pickle.py
gen_gcov_files.py
get_maintainer.py
github_helpers.py
list_boards.py scripts: Undo Board.{dir -> directories[0]} renames 2024-10-26 17:14:06 +02:00
list_hardware.py scripts: list_hardware: Do not check qualifiers for run once config 2024-10-26 17:14:06 +02:00
list_shields.py
make_bugs_pickle.py
requirements-base.txt scripts: west_commands: sdk: Display a download progress bar. 2025-01-31 09:38:09 +01:00
requirements-build-test.txt scripts: twister: Add CTest harness 2025-01-10 04:12:42 +01:00
requirements-compliance.txt scripts: requirements-compliance.txt: fix windows requirements 2025-02-24 20:20:09 +00:00
requirements-extras.txt scripts: requirements: Remove MCUboot imgtool requirement 2025-01-30 14:16:50 +01:00
requirements-run-test.txt
requirements.txt
series-push-hook.sh
set_assignees.py
snippets.py sysbuild: Add support for snippets 2024-12-27 07:18:13 +01:00
spelling.txt
tags.sh
twister scripts: twister: Python Version Guard 2024-11-04 17:24:24 -05:00
valgrind.supp
west-commands.yml scripts: add "west gtags" command 2025-03-07 19:57:00 +01:00
zephyr_module.py scripts: west_commands: Support out-of-tree runners 2025-01-08 17:02:06 +01:00