mbox series

[v2,0/8] fix oeqa runtime test framework when qemu hangs

Message ID 20230209080936.148489-1-mikko.rapeli@linaro.org
Headers show
Series fix oeqa runtime test framework when qemu hangs | expand

Message

Mikko Rapeli Feb. 9, 2023, 8:09 a.m. UTC
I get a qemu hang on kirkstone, swtpm and optee. One of the
optee-test/xtest hangs the qemu machine in some kind of deadlock.
While this needs to be debugged and fixed, the oeqa runtime tests
also hanged and never returned. Thus this patch set. With these changes
qemu deadlock is detected and do_testimage() task eventually exits
with all correct tests failing and the hangin qemu system gets killed.

Tested on kirkstone and cherry-picked to master. If something blows up
I'll do more testing on master branch based setup.

v2: removed all debug prints

v1: https://lists.openembedded.org/g/openembedded-core/message/176192

Mikko Rapeli (8):
  oeqa ssh.py: move output prints to new line
  oeqa ssh.py: fix hangs in run()
  oeqa ssh.py: add connection keep alive options to ssh client
  oeqa dump.py: add error counter and stop after 5 failures
  oeqa qemurunner: read more data at a time from serial
  oeqa qemurunner.py: add timeout to QMP calls
  oeqa qemurunner.py: kill qemu if it hangs
  oeqa qemurunner.py: try to avoid reading one character at a time

 meta/lib/oeqa/core/target/ssh.py  | 39 ++++++++++++++++++++++++-------
 meta/lib/oeqa/utils/dump.py       | 23 ++++++++++++++++--
 meta/lib/oeqa/utils/qemurunner.py | 16 ++++++++++++-
 3 files changed, 66 insertions(+), 12 deletions(-)