]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: Setup logging before calling prepare
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jul 2017 13:45:01 +0000 (14:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 07:44:19 +0000 (08:44 +0100)
commite124eb73e6a66abbf43dffd82b834e906163614b
tree541e83b1b4d5c8f0f73a61154fd6ac12e4ed362a
parent3c479fb17ae4d3e7e5f0889af0f68257ef66475c
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@linuxfoundation.org>
scripts/recipetool