From 4661f1441429952f30e19cebd93dc42ce31fd868 Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Mon, 3 Mar 2014 18:36:39 +0200 Subject: 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 Signed-off-by: Saul Wold --- meta/lib/oe/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oe/image.py') 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)) -- cgit v1.2.3