summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-08-26 15:00:18 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-01 16:27:09 +0100
commitb90687ad24d29e91617a04f770b46f6833a6c666 (patch)
tree9f85da80459dc7b8259b46ba6b0537417f2f9558 /meta
parent1f4497167a82a9e36cb4bd0efc3f70204caac2d8 (diff)
downloadpoky-b90687ad24d29e91617a04f770b46f6833a6c666.tar.gz
qemurunner.py: print output from runqemu/qemu-system in stop()
This is done when starting up qemu has failed, but is not done when qemu started ok, but fails later in QMP communication. Output from runqemu does contain valuable information to find out why, so rather than fix all the QMP fails to include it, let's just print it in stop(). (From OE-Core rev: 1732290d4d2147bd9ffd76deaf90650519a6ad3d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6e2bf68e4401db747484c2c8ba0f77500b1d2d49) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 79db2cc247..a9efb849d9 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -435,6 +435,8 @@ class QemuRunner:
435 if self.runqemu.poll() is None: 435 if self.runqemu.poll() is None:
436 self.logger.debug("Sending SIGKILL to runqemu") 436 self.logger.debug("Sending SIGKILL to runqemu")
437 os.killpg(os.getpgid(self.runqemu.pid), signal.SIGKILL) 437 os.killpg(os.getpgid(self.runqemu.pid), signal.SIGKILL)
438 if not self.runqemu.stdout.closed:
439 self.logger.info("Output from runqemu:\n%s" % self.getOutput(self.runqemu.stdout))
438 self.runqemu.stdin.close() 440 self.runqemu.stdin.close()
439 self.runqemu.stdout.close() 441 self.runqemu.stdout.close()
440 self.runqemu_exited = True 442 self.runqemu_exited = True