runCmd by default merges stderr into stdout, and only
needs to print stdout when errors occur. When stderr
is requested as a separate stream, and an error occurs,
stderr is discarded, obscuring useful error messages.
This changes the output to include both streams.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
if result.status and not ignore_status:
exc_output = result.output
+ if result.error:
+ exc_output = exc_output + result.error
if limit_exc_output > 0:
split = result.output.splitlines()
if len(split) > limit_exc_output: