If the BrokenPipeError occurs when writing to the serial port to wake it up, defer the write and try again (which will happen on the 5s timeout of the select call). Why it should return ESHUTDOWN and then work later I'm not sure but it does appear to make it work. For now we need 'working' QA tests whilst the issue is debugged.
Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- meta/lib/oeqa/utils/qemurunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index cb3231da63b..a52fa41768f 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -465,9 +465,9 @@ class QemuRunner: self.logger.warning('Probing the serial port to wake it up!') try: self.server_socket.sendall(bytes("\n\n", "utf-8")) + sentnewlines = True except BrokenPipeError as e: self.logger.debug('Probe failed %s' % repr(e)) - sentnewlines = True for file in sread: if file is self.server_socket: qemusock, addr = self.server_socket.accept() -- 2.39.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#188950): https://lists.openembedded.org/g/openembedded-core/message/188950 Mute This Topic: https://lists.openembedded.org/mt/101892864/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-