zephyr/scripts/west_commands/tests
Fabio Baltieri 79856e7637 west: runners: blackmagicprobe: guess the gdb port based on the OS
Add some logic in blackmagicprobe.py to guess the GDB serial port based
on the OS instead of just trying the flag or /dev/ttyACM0.

The new logic explicitly looks for the well known path for BMP on Linux
(/dev/ttyBmpGdb), so that we can remove it from the board files that
have it set explicitly right now. At the same time it still allows
setting the port from the flag and also checks an environment variable,
so that it can be used for systems with multiple probes.

As a fallback, it looks for a valid serial port, picking the first one
(the probe creates two, the GDB one is the first one), and raise an
exception if nothing is found.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
2023-01-19 10:16:00 +01:00
..
nrfjprog
conftest.py west: runners: add file argument 2022-12-01 06:53:58 -08:00
test_blackmagicprobe.py west: runners: blackmagicprobe: guess the gdb port based on the OS 2023-01-19 10:16:00 +01:00
test_bossac.py
test_build.py
test_canopen_program.py scripts: west: runners: canopen: add SDO block transfer support 2023-01-11 09:39:57 +01:00
test_dediprog.py
test_dfu_util.py
test_gd32isp.py
test_imports.py scripts: west: introduce Lauterbach TRACE32 runner 2022-10-14 09:51:14 +02:00
test_mdb.py
test_nrfjprog.py scripts: west_commands: runners: remove deprecated options 2022-11-30 14:15:30 +01:00
test_pyocd.py west: runners: improve pyocd runner test coverage 2022-12-29 10:36:02 +01:00
test_stm32cubeprogrammer.py
test_stm32flash.py
test_twister.py west: west twister integration 2023-01-13 15:39:04 -08:00