diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 07:20:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:42:18 +0000 |
commit | d97a6eeaed46a12788db644007a1a5162e87b0a0 (patch) | |
tree | de7cc392a25ceefc61827db079fb661996d5796d | |
parent | 4ca2fff32c99c76aa6381ef5de28955a1f0f9fa1 (diff) | |
download | poky-d97a6eeaed46a12788db644007a1a5162e87b0a0.tar.gz |
testimage: Don't use systemd.log_level=debug logging
This causes MBs of log messages which overload the standard 200kb syslog limit
used by busybox syslog by default. This means some tests which rely on messages
being detected in syslog, e.g.
rpm.RpmInstallRemoveTest.test_check_rpm_install_removal_log_file_size
fail (AssertionError: 54 not greater than or equal to 80 : Cound not find sufficient
amount of rpm entries in /var/log/messages, found 54 entries).
We enabled this to aid debugging of some systemd race issues, those are
now resolved so we can disable this. Leave the log level parameter as a
comment to save others having to look it up if they need debugging.
(From OE-Core rev: 84d4daffaebcb4816d597671b287329e8a472f59)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/testimage.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 07744aff92..173d97408c 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -261,7 +261,8 @@ def testimage_main(d): | |||
261 | 261 | ||
262 | bootparams = None | 262 | bootparams = None |
263 | if d.getVar('VIRTUAL-RUNTIME_init_manager', '') == 'systemd': | 263 | if d.getVar('VIRTUAL-RUNTIME_init_manager', '') == 'systemd': |
264 | bootparams = 'systemd.log_level=debug systemd.log_target=console' | 264 | # Add systemd.log_level=debug to enable systemd debug logging |
265 | bootparams = 'systemd.log_target=console' | ||
265 | 266 | ||
266 | results = None | 267 | results = None |
267 | orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception) | 268 | orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception) |