summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
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):
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: