From: Markus Lehtonen Date: Mon, 2 May 2016 14:19:36 +0000 (+0300) Subject: oeqa.utils.commands: runCmd: return stderr output, too X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~25196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de9744c91a997a5ab0e7a19dbe13d8def8d62800;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa.utils.commands: runCmd: return stderr output, too Useful if one wants to separate stdout and stderr. Signed-off-by: Markus Lehtonen Signed-off-by: Ross Burton --- diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 2e513be6af5..eddcf1ac8fe 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py @@ -103,6 +103,7 @@ def runCmd(command, ignore_status=False, timeout=None, assert_error=True, **opti result.command = command result.status = cmd.status result.output = cmd.output + result.error = cmd.error result.pid = cmd.process.pid if result.status and not ignore_status: