diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 18:17:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-04 11:11:59 +0000 |
commit | 66f536ad57d00f05defbbbf8f7cc64822666ad82 (patch) | |
tree | f57c386c26a3951c6a255808033d174e10959ae6 /meta/lib/oeqa/selftest | |
parent | a71e71f9c4d8c64fb27a03b5a048710c8aee01c1 (diff) | |
download | poky-66f536ad57d00f05defbbbf8f7cc64822666ad82.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: ba8babc45141891d0624f9a181a580fa416e87ec)
(From OE-Core rev: 22003f97ff7f53c32999dc466d26c1471ead9b6b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r-- | meta/lib/oeqa/selftest/runqemu.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/runqemu.py b/meta/lib/oeqa/selftest/runqemu.py index 58c6f96f98..89ee780115 100644 --- a/meta/lib/oeqa/selftest/runqemu.py +++ b/meta/lib/oeqa/selftest/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.base import oeSelfTest | 7 | from oeqa.selftest.base import oeSelfTest |
9 | from oeqa.utils.commands import bitbake, runqemu, get_bb_var | 8 | from oeqa.utils.commands import bitbake, runqemu, get_bb_var |
@@ -21,10 +20,6 @@ class RunqemuTests(oeSelfTest): | |||
21 | self.fstypes = "ext4 iso hddimg vmdk qcow2 vdi" | 20 | self.fstypes = "ext4 iso hddimg vmdk qcow2 vdi" |
22 | self.cmd_common = "runqemu nographic" | 21 | self.cmd_common = "runqemu nographic" |
23 | 22 | ||
24 | # Avoid emit the same record multiple times. | ||
25 | mainlogger = logging.getLogger("BitBake.Main") | ||
26 | mainlogger.propagate = False | ||
27 | |||
28 | self.write_config( | 23 | self.write_config( |
29 | """ | 24 | """ |
30 | MACHINE = "%s" | 25 | MACHINE = "%s" |