diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-05-26 14:39:39 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-29 15:15:13 +0100 |
commit | 7fe5f5c29ca271ab718bbd1383e596f2ae61554c (patch) | |
tree | 16465d1e311a14ddcec013942f3dd0f0c9eb3aae | |
parent | 5e4727bb424f3001178f8fbafabab592aa3b98ca (diff) | |
download | openembedded-core-7fe5f5c29ca271ab718bbd1383e596f2ae61554c.tar.gz openembedded-core-7fe5f5c29ca271ab718bbd1383e596f2ae61554c.tar.bz2 openembedded-core-7fe5f5c29ca271ab718bbd1383e596f2ae61554c.zip |
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>
-rwxr-xr-x | scripts/runqemu | 7 |
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: |