zephyr/scripts/west_commands/runners
Eugeniy Paltsev 9858893ea8 ARC: runner: mdb: tweak searching for cld process pid
mdb binary starts several subproceses and one of them is cld process.
In runners/mdb.py we record process id of cld on each mdb launch
to terminate simulator correctly later. However we can finish test
and terminate mdb before the cld process was found (so cld won't
be terminated correctly by sanitycheck infrastructure). It may happen
if we launch mdb on fast host machine.

That leads to several issues. First of all we get ugly error in
sanitycheck output:
------------------------>8--------------------------------
FileNotFoundError: [Errno 2] No such file or directory: '/xxxx/mdb.pid'
------------------------>8--------------------------------

Secondly (and it's more important) we terminate simulator incorrectly.
We terminate mdb leaving cld process alive, running and consuming one
cpu core permanently (until we kill it manually)

So, let's increase granularity of lookups and don't wait extra 0.5
seconds before the first lookup.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
2020-12-02 14:08:26 -05:00
..
__init__.py runners: add support for stm32cubeprogrammer 2020-11-04 14:47:35 -06:00
blackmagicprobe.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
bossac.py runners: bossac: Add speed argument 2020-11-06 12:15:55 -06:00
canopen_program.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
core.py scripts: runners: switch RunnerConfig to NamedTuple 2020-09-03 16:49:09 -05:00
dediprog.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
dfu.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
esp32.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
hifive1.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
intel_s1000.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
jlink.py west: runners: jlink: add support for -nogui 1 command line parameter 2020-08-20 13:04:37 -05:00
mdb.py ARC: runner: mdb: tweak searching for cld process pid 2020-12-02 14:08:26 -05:00
misc.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
nios2.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
nrfjprog.py nrfjprog.py: handle ImportError 2020-10-06 07:38:58 -04:00
nsim.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
openocd.py scripts: runners: fix openocd on Windows 2020-09-09 10:51:29 +02:00
pyocd.py runners: Implement --erase option in pyocd runner 2020-07-23 10:30:47 +02:00
qemu.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
stm32cubeprogrammer.py runners: add support for stm32cubeprogrammer 2020-11-04 14:47:35 -06:00
stm32flash.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00
xtensa.py runners: enforce RunnerCaps via create() indirection 2020-06-25 12:14:25 +02:00