summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2019-12-09 23:59:07 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-15 09:10:46 +0000
commit01fa7fdd057e430e7bb55bb57d0df6d226f56e3b (patch)
treee48c0f22543080d0ef4d1e63c220ad17883f9f36 /meta/lib
parentc4d247ff7c25430892ae976091dfee8979a6ad6e (diff)
downloadpoky-01fa7fdd057e430e7bb55bb57d0df6d226f56e3b.tar.gz
oeqa: qemu: ensure we print runqemu output in the event of failure
If we get here in the code it's because runqemu has failed, this is not a debug situation - we need to see the output, so print it as an error. Fixes [YOCTO #13681]. (From OE-Core rev: c1def38c680d64c992839166bbf9bec51eb0788a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 60e1cf8e08..2cada35d48 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -99,8 +99,8 @@ class QemuRunner:
99 def handleSIGCHLD(self, signum, frame): 99 def handleSIGCHLD(self, signum, frame):
100 if self.runqemu and self.runqemu.poll(): 100 if self.runqemu and self.runqemu.poll():
101 if self.runqemu.returncode: 101 if self.runqemu.returncode:
102 self.logger.warning('runqemu exited with code %d' % self.runqemu.returncode) 102 self.logger.error('runqemu exited with code %d' % self.runqemu.returncode)
103 self.logger.debug("Output from runqemu:\n%s" % self.getOutput(self.runqemu.stdout)) 103 self.logger.error('Output from runqemu:\n%s' % self.getOutput(self.runqemu.stdout))
104 self.stop() 104 self.stop()
105 self._dump_host() 105 self._dump_host()
106 raise SystemExit 106 raise SystemExit