summaryrefslogtreecommitdiffstats
path: root/scripts
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:20 +0100
commite680f23c8b644051486c21d77442190ec80494de (patch)
tree155a957f094b3a99fd6b93d4bfed64ee422bea14 /scripts
parent72da61aae5af104d78221c51130aecdcf77684d2 (diff)
downloadpoky-e680f23c8b644051486c21d77442190ec80494de.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] (From OE-Core rev: 7fe5f5c29ca271ab718bbd1383e596f2ae61554c) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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):
1137 else: 1137 else:
1138 kernel_opts = "" 1138 kernel_opts = ""
1139 cmd = "%s %s" % (self.qemu_opt, kernel_opts) 1139 cmd = "%s %s" % (self.qemu_opt, kernel_opts)
1140 logger.info('Running %s' % cmd) 1140 logger.info('Running %s\n' % cmd)
1141 if subprocess.call(cmd, shell=True) != 0: 1141 process = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE)
1142 raise Exception('Failed to run %s' % cmd) 1142 if process.wait():
1143 logger.error("Failed to run qemu: %s", process.stderr.read().decode())
1143 1144
1144 def cleanup(self): 1145 def cleanup(self):
1145 if self.cleantap: 1146 if self.cleantap: