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 scripts: runners: check for required programs 2019-06-17 15:06:21 +02:00
test_bossac.py scripts: runners: error on missing non-elf outputs 2021-02-02 14:01:22 -05:00
test_build.py scripts: Remove unused imports in all Python scripts 2019-03-28 11:06:20 -05:00
test_canopen_program.py scripts: west: add CANopen flash runner 2020-05-08 10:53:42 +02:00
test_dediprog.py west: add flash runner for DediProg 2019-11-03 12:30:45 +01:00
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 runners: pyocd: add --tool-opt parameter 2020-02-03 13:32:38 -05:00
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