[oe-commits] [openembedded-core] 01/03: recipetool: Setup logging before calling prepare

git at git.openembedded.org git at git.openembedded.org
Wed Jul 19 14:43:41 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 737a44e9f2ed64b5da658db2ebe9daf226b378e6
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Jul 19 14:45:01 2017 +0100

    recipetool: Setup logging before calling prepare
    
    This avoids test failures like:
    
    ======================================================================
    ERROR [0.946s]: test_recipetool_load_plugin (recipetool.RecipetoolTests)
    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/recipetool.py", line 514, in test_recipetool_load_plugin
        with open(srcfile) as fh:
    FileNotFoundError: [Errno 2] No such file or directory: 'NOTE: Starting bitbake server...\n/media/build1/poky/meta-selftest/lib/recipetool/bbpath.py'
    INFO - ----------------------------------------------------------------------
    
    which comes from:
    
    $ recipetool --quiet pluginfile
    NOTE: Starting bitbake server...
    /media/build1/poky/meta-selftest/lib/recipetool/bbpath.py
    
    since there is corruption in the output despite the --quiet option. Setting
    the logging up before calling tinfoil.prepare() resolves this.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/recipetool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/recipetool b/scripts/recipetool
index 6c66487..0bcf348 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -36,8 +36,8 @@ def tinfoil_init(parserecipes):
     import bb.tinfoil
     import logging
     tinfoil = bb.tinfoil.Tinfoil(tracking=True)
-    tinfoil.prepare(not parserecipes)
     tinfoil.logger.setLevel(logger.getEffectiveLevel())
+    tinfoil.prepare(not parserecipes)
     return tinfoil
 
 def main():

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


More information about the Openembedded-commits mailing list