diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-03-06 17:10:12 +0200 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-08 11:13:47 +0000 | 
| commit | 4a46dd5190d97fdcb6297a0c1d8c824d425c4c51 (patch) | |
| tree | 3a530135a2b40593aa8171ba05ec65259c5e8404 /meta/classes/manpages.bbclass | |
| parent | 770b87d903644641da41594193ee61b564dd99e9 (diff) | |
| download | openembedded-core-4a46dd5190d97fdcb6297a0c1d8c824d425c4c51.tar.gz openembedded-core-4a46dd5190d97fdcb6297a0c1d8c824d425c4c51.tar.bz2 openembedded-core-4a46dd5190d97fdcb6297a0c1d8c824d425c4c51.zip | |
qemurunner.py: ignore decode errors
qemu output can contain control characters. This cause qemurunner
API to crash when decoding the output to utf-8:
Traceback (most recent call last):
  File "/usr/lib64/python3.4/threading.py", line 911, in _bootstrap_inner
    self.run()
  File "meta/lib/oeqa/utils/qemurunner.py", line 472, in run
    threading.Thread.run(self)
  File "/usr/lib64/python3.4/threading.py", line 859, in run
    self._target(*self._args, **self._kwargs)
  File "meta/lib/oeqa/utils/qemurunner.py", line 465, in threadtarget
    self.eventloop()
  File "meta/lib/oeqa/utils/qemurunner.py", line 526, in eventloop
    self.logfunc(data)
  File "meta/lib/oeqa/utils/qemurunner.py", line 77, in log
    msg = msg.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 0:
unexpected end of data
Added errors='ignore' to decode call to fix this.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/manpages.bbclass')
0 files changed, 0 insertions, 0 deletions
