]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/commands.py: Command class improve validations/decoding in output
authorAníbal Limón <anibal.limon@linux.intel.com>
Wed, 27 Jul 2016 22:40:42 +0000 (17:40 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Aug 2016 10:46:37 +0000 (11:46 +0100)
commitf2a04faf3c5d0a3cc562061b22e1c4873e1ca769
tree988a3d7e6b0b004f8adaf17b8c4ea3754d4eb37c
parentf49e4847ba00cdd072e5f072cb9ca69ef98af758
oeqa/utils/commands.py: Command class improve validations/decoding in output

When run a command sometimes the output isn't provided so validate
before trying to encode to utf-8, also some output like BIOS/EFI
contains characters that can't be codified into utf-8 for this reason
set errors='replace'.

[YOCTO #10019]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/utils/commands.py