[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6015/8267] runqemu: output qemu-system errors



commit e680f23c8b644051486c21d77442190ec80494de
Author: Ed Bartosh <ed bartosh linux intel com>
Date:   Fri May 26 14:39:39 2017 +0300

    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>

 scripts/runqemu |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/scripts/runqemu b/scripts/runqemu
index 72c4176..0039b83 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]