diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-27 13:24:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-27 23:28:21 +0100 |
commit | 5302b7b8fa1349ae99040fe8fdcc4e42c722cc10 (patch) | |
tree | 2aac188d05a7b1bcfd5f56df7d672d01766f80c1 /meta/lib/oeqa/targetcontrol.py | |
parent | 3d3748a237bb06ce7d9520bf485ef0c6cf1adc86 (diff) | |
download | openembedded-core-5302b7b8fa1349ae99040fe8fdcc4e42c722cc10.tar.gz openembedded-core-5302b7b8fa1349ae99040fe8fdcc4e42c722cc10.tar.bz2 openembedded-core-5302b7b8fa1349ae99040fe8fdcc4e42c722cc10.zip |
targetcontrol: Improve logs by outputting qemu boot log in case of failure
We've had a few cases on the autobuilder where we've lost logs of
the boot and been unable to debug it further. Show this information
onto the console to be more useful.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 3 |
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): self.connection = SSHControl(ip=self.ip, logfile=self.sshlog) else: self.stop() + if os.path.exists(self.qemulog): + with open(self.qemulog, 'r') as f: + bb.error("Qemu log output from %s:\n%s" % (self.qemulog, f.read())) raise bb.build.FuncFailed("%s - FAILED to start qemu - check the task log and the boot log" % self.pn) def stop(self): |