[oe-commits] [openembedded-core] branch python3 updated: qemurunner: Use surrogateescape decoding

git at git.openembedded.org git at git.openembedded.org
Wed Jun 1 12:30:06 UTC 2016


rpurdie pushed a commit to branch python3
in repository openembedded-core.

The following commit(s) were added to refs/heads/python3 by this push:
       new  5958a95   qemurunner: Use surrogateescape decoding
5958a95 is described below

commit 5958a95505e230c162f3133696485f920cc3b41e
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Jun 1 13:27:25 2016 +0100

    qemurunner: Use surrogateescape decoding
    
    Since the stream can contain invalid binary characters (e.g. from
    ppc's bootloader) use surrogateescape decoding to ensure we do process
    the character stream, else it can hang/timeout.
    
    Signed-off-by: Richard Purdie <richard.purdie at 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 e408fbb..b8ac3f0 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -234,7 +234,7 @@ class QemuRunner:
                         data = data + sock.recv(1024)
                         if data:
                             try:
-                                data = data.decode("utf-8")
+                                data = data.decode("utf-8", errors="surrogateescape")
                                 bootlog += data
                                 data = b''
                                 if re.search(".* login:", bootlog):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list