zephyr/scripts/pylib
Yuval Peress 5b19a9b94d twister: Better manage gcov sym link
In twister coverage runs we create the gcov sym link to llvm-cov
executable. This code runs multiple times which causes errors with the
current implementation since creating the symlink will fail; then
copying will also fail because we're using the symlink (self copy the
file).

Add a helper function to `try_making_symlink` which will handle the
following cases:
1. If the symlink already exists and is correct, do nothing.
2. If the symlink exists but points to the wrong file, replace it.
3. If the symlink doesn't exist create it.
4. If creating a symlink fails, just copy the file.

Signed-off-by: Yuval Peress <peress@google.com>
2025-05-07 21:20:45 +02:00
..
build_helpers scripts: pylib: build_helpers: flash_order fix 2023-10-10 15:55:58 +03:00
power-twister-harness Twister: Add power measurements support for Twister. 2025-03-31 08:06:25 +02: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 twister: Better manage gcov sym link 2025-05-07 21:20:45 +02:00