[oe-commits] [openembedded-core] 02/11: testimage: Don't use systemd.log_level=debug logging

git at git.openembedded.org git at git.openembedded.org
Tue Mar 14 14:28:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 84d4daffaebcb4816d597671b287329e8a472f59
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Mar 14 07:20:38 2017 +0000

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/testimage.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 07744af..173d974 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -261,7 +261,8 @@ def testimage_main(d):
 
     bootparams = None
     if d.getVar('VIRTUAL-RUNTIME_init_manager', '') == 'systemd':
-        bootparams = 'systemd.log_level=debug systemd.log_target=console'
+        # Add systemd.log_level=debug to enable systemd debug logging
+        bootparams = 'systemd.log_target=console'
 
     results = None
     orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list