summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-05-26 14:39:39 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-29 15:15:13 +0100
commit7fe5f5c29ca271ab718bbd1383e596f2ae61554c (patch)
tree16465d1e311a14ddcec013942f3dd0f0c9eb3aae /scripts/runqemu
parent5e4727bb424f3001178f8fbafabab592aa3b98ca (diff)
downloadopenembedded-core-7fe5f5c29ca271ab718bbd1383e596f2ae61554c.tar.gz
runqemu: output qemu-system errors
Included error output from qemu-system into the runqemu error message. Made error output more visible by printing new line before it. [YOCTO #11542] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 72c4176b72..0039b8359e 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1137,9 +1137,10 @@ class BaseConfig(object):
else:
kernel_opts = ""
cmd = "%s %s" % (self.qemu_opt, kernel_opts)
- logger.info('Running %s' % cmd)
- if subprocess.call(cmd, shell=True) != 0:
- raise Exception('Failed to run %s' % cmd)
+ logger.info('Running %s\n' % cmd)
+ process = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE)
+ if process.wait():
+ logger.error("Failed to run qemu: %s", process.stderr.read().decode())
def cleanup(self):
if self.cleantap: