diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2015-03-10 09:48:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-20 11:03:08 +0000 |
commit | a084162a9dc4718ab453723f1f28aefc55100e2e (patch) | |
tree | 169fe01528edc6801f763c0216fdf8b28a7a9547 /scripts/runqemu-ifup | |
parent | dba34e5a6f0a4c726266654dc5f26e0f7f13db0f (diff) | |
download | openembedded-core-a084162a9dc4718ab453723f1f28aefc55100e2e.tar.gz openembedded-core-a084162a9dc4718ab453723f1f28aefc55100e2e.tar.bz2 openembedded-core-a084162a9dc4718ab453723f1f28aefc55100e2e.zip |
combo-layer: runcmd() with separate output
Allow the caller to specify a separate output stream. stderr is always
a temporary file opened by runcmd(), so read from that to capture
output for error reporting *and* the return value.
The reasoning for the latter is a) that this preserves the traditional
behavior when out=None and b) if the caller wants the content of
stdout, it can read from the stream itself, which is not possible for
the temporary stderr.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/runqemu-ifup')
0 files changed, 0 insertions, 0 deletions