]> code.ossystems Code Review - openembedded-core.git/commit
wic: _exec_cmd: produce error if exit code is not 0
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 10 Jan 2017 17:46:09 +0000 (19:46 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Jan 2017 18:01:55 +0000 (18:01 +0000)
commit7f68001579c08509332d633b27b5c2ea9386b6c9
tree13d185dbd92d6f1cf1d9e5d8b7763f038d7cb652
parent2e05d9709f1308fc95d3406b8a409ea982c5b474
wic: _exec_cmd: produce error if exit code is not 0

Current code doesn't always show error output of the
external command and even ignores non-zero exit code.

Moved checking of exit code value to the lowest level
possible: to _exec_cmd. This should make wic to always
check exit code of the external command and issue
an error if it's not 0.

[YOCTO #10816]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/utils/oe/misc.py