diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-10 14:31:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-11 09:39:46 +0100 |
commit | 441146001650959ea327e6eb9e6d93ccd669a8d8 (patch) | |
tree | 786f79f34142bebbb128c85166ba13d78c9aa649 /meta/lib/oeqa/utils/qemurunner.py | |
parent | b36cbd3f2bd2096129d14311f6f17f2c64482704 (diff) | |
download | poky-441146001650959ea327e6eb9e6d93ccd669a8d8.tar.gz |
oeqa/qemurunner: Ensure we retry after BrokenPipeError
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.
(From OE-Core rev: ea9e6ba0ab31a0b20012c283aa768496a50b527a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index cb3231da63..a52fa41768 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -465,9 +465,9 @@ class QemuRunner: | |||
465 | self.logger.warning('Probing the serial port to wake it up!') | 465 | self.logger.warning('Probing the serial port to wake it up!') |
466 | try: | 466 | try: |
467 | self.server_socket.sendall(bytes("\n\n", "utf-8")) | 467 | self.server_socket.sendall(bytes("\n\n", "utf-8")) |
468 | sentnewlines = True | ||
468 | except BrokenPipeError as e: | 469 | except BrokenPipeError as e: |
469 | self.logger.debug('Probe failed %s' % repr(e)) | 470 | self.logger.debug('Probe failed %s' % repr(e)) |
470 | sentnewlines = True | ||
471 | for file in sread: | 471 | for file in sread: |
472 | if file is self.server_socket: | 472 | if file is self.server_socket: |
473 | qemusock, addr = self.server_socket.accept() | 473 | qemusock, addr = self.server_socket.accept() |