summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/targetcontrol.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index 138e61786b..c76887bae1 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -175,6 +175,9 @@ class QemuTarget(BaseTarget):
175 self.connection = SSHControl(ip=self.ip, logfile=self.sshlog) 175 self.connection = SSHControl(ip=self.ip, logfile=self.sshlog)
176 else: 176 else:
177 self.stop() 177 self.stop()
178 if os.path.exists(self.qemulog):
179 with open(self.qemulog, 'r') as f:
180 bb.error("Qemu log output from %s:\n%s" % (self.qemulog, f.read()))
178 raise bb.build.FuncFailed("%s - FAILED to start qemu - check the task log and the boot log" % self.pn) 181 raise bb.build.FuncFailed("%s - FAILED to start qemu - check the task log and the boot log" % self.pn)
179 182
180 def stop(self): 183 def stop(self):