]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/ssh: Avoid unicode decode exceptions
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 May 2019 07:00:00 +0000 (08:00 +0100)
committerArmin Kuster <akuster808@gmail.com>
Sat, 18 May 2019 04:19:25 +0000 (21:19 -0700)
commit53df0c93c46b6ab1366df44bd9927dc6f8699b29
treeadec580dca9570f45aec379d122ea569190b2991
parent68919826fe4d4db4582223569c5a939a9c2f9c72
oeqa/ssh: Avoid unicode decode exceptions

This code really needs to be rewritten to not split potential
multibyte characters, for now work around it to avoid exceptions like:

  File "/home/pokybuild/yocto-worker/qa-extras2/build/meta/lib/oeqa/core/target/ssh.py", line 211, in run
    data = reader.read(1024, 4096)
  File "/usr/lib64/python3.6/codecs.py", line 503, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 0: invalid start byte

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/core/target/ssh.py