It's now available since python 3.5. Then add debug prints to leave traces if something still hangs or fails.
Signed-off-by: Mikko Rapeli <mikko.rap...@linaro.org> --- meta/lib/oeqa/utils/qemurunner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index b5fed6c9fe..49ec3858c7 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -123,12 +123,12 @@ class QemuRunner: f.write("%s" % msg) def getOutput(self, o): - import fcntl - fl = fcntl.fcntl(o, fcntl.F_GETFL) - fcntl.fcntl(o, fcntl.F_SETFL, fl | os.O_NONBLOCK) + os.set_blocking(o.fileno(), False) try: + self.logger.debug('Calling read()') return os.read(o.fileno(), 1000000).decode("utf-8") except BlockingIOError: + self.logger.debug('BlockingIOError but should not have happened!') return "" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#176198): https://lists.openembedded.org/g/openembedded-core/message/176198 Mute This Topic: https://lists.openembedded.org/mt/96401362/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-