diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 18:17:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-09 12:24:24 +0000 |
commit | 0e198a7311fe341c5bc20a697e90da2928c44262 (patch) | |
tree | 9d864cb840bb6295b28d93159c17384e2d5505e7 /meta/lib/oeqa/selftest | |
parent | 7608f33f0f0c6c1c61c80a77e12270d06b236d84 (diff) | |
download | poky-0e198a7311fe341c5bc20a697e90da2928c44262.tar.gz |
oeqa: Clean up logger handling
The logger handling in oeqa was confused at best. This patch:
a) Passes in a logger through various qemu runner pieces
b) Uses that logger consistently in the code
c) Creates a logger for QemuRunner outside the bitbake namespace
meaning we don't conflict with the tinfoil logging changes
The result of this is more consistency. For runtime tests in testimage,
the logs always contain the debug info, nothing is shwon on the console.
For the oe-selftests, logs are intercepted and only shown if the test
fails.
(From OE-Core rev: 4ff678137a55b93c9ba2cbffda34335ba859f704)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runqemu.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py index 1a8d12178d..47d41f5218 100644 --- a/meta/lib/oeqa/selftest/cases/runqemu.py +++ b/meta/lib/oeqa/selftest/cases/runqemu.py | |||
@@ -3,7 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | import re | 5 | import re |
6 | import logging | ||
7 | 6 | ||
8 | from oeqa.selftest.case import OESelftestTestCase | 7 | from oeqa.selftest.case import OESelftestTestCase |
9 | from oeqa.utils.commands import bitbake, runqemu, get_bb_var | 8 | from oeqa.utils.commands import bitbake, runqemu, get_bb_var |
@@ -24,10 +23,6 @@ class RunqemuTests(OESelftestTestCase): | |||
24 | self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi" | 23 | self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi" |
25 | self.cmd_common = "runqemu nographic" | 24 | self.cmd_common = "runqemu nographic" |
26 | 25 | ||
27 | # Avoid emit the same record multiple times. | ||
28 | mainlogger = logging.getLogger("BitBake.Main") | ||
29 | mainlogger.propagate = False | ||
30 | |||
31 | self.write_config( | 26 | self.write_config( |
32 | """ | 27 | """ |
33 | MACHINE = "%s" | 28 | MACHINE = "%s" |