diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-03-03 18:36:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-07 14:44:25 +0000 |
commit | 4661f1441429952f30e19cebd93dc42ce31fd868 (patch) | |
tree | 8242b1296543707379c21f210c64ec76d8d410cb /meta/lib/oe/image.py | |
parent | ad9bd9ce164c9cb1212de27fec84ad0fe5214bb2 (diff) | |
download | openembedded-core-4661f1441429952f30e19cebd93dc42ce31fd868.tar.gz openembedded-core-4661f1441429952f30e19cebd93dc42ce31fd868.tar.bz2 openembedded-core-4661f1441429952f30e19cebd93dc42ce31fd868.zip |
image.py, rootfs.py, package_manager.py: redirect stderr to stdout when calling check_output()
If a command executed with subprocess.check_output() fails, the
subprocess.CalledProcessError.output contains only STDOUT and the user
needs to check the log.do_rootfs to see any other details.
This commit forwards stderr to stdout so that, in case of failure, the
entire error output will be displayed in terminal.
[YOCTO #5902]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib/oe/image.py')
-rw-r--r-- | meta/lib/oe/image.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py index 488683e42a..a03b73e4c0 100644 --- a/meta/lib/oe/image.py +++ b/meta/lib/oe/image.py @@ -11,7 +11,7 @@ def generate_image(arg): (type, create_img_cmd)) try: - subprocess.check_output(create_img_cmd) + subprocess.check_output(create_img_cmd, stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: return("Error: The image creation script '%s' returned %d:\n%s" % (e.cmd, e.returncode, e.output)) |