zephyr/scripts/pylib
Marcin Niestroj efcc0ed27f scripts: pytest: execute 'zephyr.exe' in application build directory cwd
Execute 'zephyr.exe' in application build directory as 'current working
directory' (cwd). This makes sure that native_sim specific drivers (like
flash simulator with file backend in 'flash.bin') are using unique context
for external resources with relative paths.

This fixes executing native_sim tests in twister with flash simulator.
Previously a shared 'flash.bin' was used for all executed 'zephyr.exe'
processes in twister. After this patch a unique 'flash.bin' file is used
for each tested sample, since those 'flash.bin' is placed in application
build directory instead of twister root directory.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-06-18 15:53:00 +02:00
..
build_helpers scripts: pylib: build_helpers: flash_order fix 2023-10-10 15:55:58 +03:00
pytest-twister-harness scripts: pytest: execute 'zephyr.exe' in application build directory cwd 2024-06-18 15:53:00 +02:00
twister twister: Fix on output directory reaching backup limit 2024-06-17 12:08:20 -04:00