diff options
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index 204ad8b918..d55248c497 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -123,7 +123,10 @@ class QemuRunner: | |||
123 | import fcntl | 123 | import fcntl |
124 | fl = fcntl.fcntl(o, fcntl.F_GETFL) | 124 | fl = fcntl.fcntl(o, fcntl.F_GETFL) |
125 | fcntl.fcntl(o, fcntl.F_SETFL, fl | os.O_NONBLOCK) | 125 | fcntl.fcntl(o, fcntl.F_SETFL, fl | os.O_NONBLOCK) |
126 | return os.read(o.fileno(), 1000000).decode("utf-8") | 126 | try: |
127 | return os.read(o.fileno(), 1000000).decode("utf-8") | ||
128 | except BlockingIOError: | ||
129 | return "" | ||
127 | 130 | ||
128 | 131 | ||
129 | def handleSIGCHLD(self, signum, frame): | 132 | def handleSIGCHLD(self, signum, frame): |