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(-) -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#176919): https://lists.openembedded.org/g/openembedded-core/message/176919 Mute This Topic: https://lists.openembedded.org/mt/96849155/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-