]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/case.py: Encode binary data of log
authorNathan Rossi <nathan@nathanrossi.com>
Fri, 27 Sep 2019 05:31:08 +0000 (05:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Sep 2019 12:35:26 +0000 (13:35 +0100)
commit20531dc0b8f76a6e37cc856f36cd94077b6aba50
treee0b9b1d07ba0d5730fcac8f5549816ebdfe78216
parent3613451825b251784b7673d89db465b9782c3a31
oeqa/core/case.py: Encode binary data of log

Do not decode the log content into a string only to re-encode it as
binary data again. Some logs might un-intentionally contain bytes that
do not decode as utf-8, as such preserve the log file content as it was
on disk.

Handle the decoding on the resulttool side, but also handle the failure
to decode the data.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/case.py
scripts/lib/resulttool/resultutils.py