zephyr/scripts/west_commands/tests
Martí Bolívar 3204554841 scripts: runners: error on missing non-elf outputs
The RunnerConfig class stores the locations of the Zephyr output files
in various formats (elf, hex, bin). A longstanding issue with the
representation is that these might not exist if the corresponding
Kconfig options are not set. For example, if
CONFIG_BUILD_OUTPUT_BIN=n, there is no .bin file.

Change this so the type system knows these are Optional[str], not str.

Fix the runners that use non-ELF outputs so they check for the
existence of the relevant file before using it, mostly using a new
ZephyrBinaryRunner.ensure_output helper.

I'm not going to bother with checking for the ELF file itself; that's
always there as far as I can tell.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-02-02 14:01:22 -05:00
..
conftest.py
test_blackmagicprobe.py
test_bossac.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
test_build.py
test_canopen_program.py scripts: west: add CANopen flash runner 2020-05-08 10:53:42 +02:00
test_dediprog.py
test_dfu_util.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
test_imports.py ARC: west: split mdb runner for mdb-hw & mdb-nsim runners 2020-11-11 08:18:38 -05:00
test_mdb.py ARC: west: mdb runner: record MDB's CLD process pid to file 2020-11-11 08:18:38 -05:00
test_nrfjprog.py runners: nrfjprog: boilerplate and recover rework 2020-12-09 15:00:24 -06:00
test_pyocd.py
test_stm32cubeprogrammer.py runners: stm32cubeprogrammer: add tests 2020-11-04 14:47:35 -06:00
test_stm32flash.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00