[oe-commits] [openembedded-core] 02/03: devtool: Setup logging before calling prepare

git at git.openembedded.org git at git.openembedded.org
Wed Jul 19 14:43:42 UTC 2017


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

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

commit c31b8d993da443c5c731157cdab10d2c659d25d0
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Jul 19 15:18:44 2017 +0100

    devtool: Setup logging before calling prepare
    
    This avoids test failures like:
    
    INFO - ======================================================================
    INFO - FAIL [1.755s]: test_devtool_layer_plugins (devtool.DevtoolTests)
    INFO - ----------------------------------------------------------------------
    INFO - Traceback (most recent call last):
      File "/media/build1/poky/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
        return func(*args, **kwargs)
      File "/media/build1/poky/meta/lib/oeqa/selftest/cases/devtool.py", line 1354, in test_devtool_layer_plugins
        self.assertEqual(result.output, s[::-1])
    AssertionError: "NOTE: Starting bitbake server...\noY senu[36 chars]rciM" != "oY senuZ s'enoynA morF tiforP oN edaM tfosorciM"
    - NOTE: Starting bitbake server...
      oY senuZ s'enoynA morF tiforP oN edaM tfosorciM
    INFO - ----------------------------------------------------------------------
    
    since there is corruption in the output. Setting the logging up before
    calling tinfoil.prepare() resolves this.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/lib/devtool/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py
index ff97dfc..edd23ae 100644
--- a/scripts/lib/devtool/__init__.py
+++ b/scripts/lib/devtool/__init__.py
@@ -111,8 +111,8 @@ def setup_tinfoil(config_only=False, basepath=None, tracking=False):
 
         import bb.tinfoil
         tinfoil = bb.tinfoil.Tinfoil(tracking=tracking)
-        tinfoil.prepare(config_only)
         tinfoil.logger.setLevel(logger.getEffectiveLevel())
+        tinfoil.prepare(config_only)
     finally:
         os.chdir(orig_cwd)
     return tinfoil

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


More information about the Openembedded-commits mailing list