summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2023-02-09 10:09:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-24 16:41:51 +0000
commitf3437cb7404553cb7e0ac0662f88d74d0de5030f (patch)
treed12835905fb2225259a83d2cab5f2f9e6d74ecd2 /scripts/lib/scriptutils.py
parent57ecad65f5db755d55bfc2157a6cd90ba0a75d29 (diff)
downloadpoky-f3437cb7404553cb7e0ac0662f88d74d0de5030f.tar.gz
oeqa dump.py: add error counter and stop after 5 failures
If test target qemu machine hangs completely, dump_target() calls over serial console are taking a long time to time out, possibly for every failing ssh command execution and a lot of test cases, and same with dump_monitor(). Instead of trying for ever, count errors and after 5 stop trying to dump_target() and dump_monitor() completely. These help to end testing earlier when a test target is completely deadlocked and all ssh, serial and QMP communication with it are failing. (From OE-Core rev: d570e8f3d6ac05be200f5f4acbbd1a15a95fc122) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> (cherry picked from commit d9ad0a055abba983c6cee1dca4d2f0a8a3c48782) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions