summaryrefslogtreecommitdiffstats
path: root/scripts/recipetool
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-19 14:45:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:44:25 +0100
commite69665f3e5d78e9f45afbc938cc694555665d2dd (patch)
tree01498a3644a28d93d87550bbfe1c18285e13a0b8 /scripts/recipetool
parent821cb0b819832feaebe656ed34e9236dedf6d673 (diff)
downloadpoky-e69665f3e5d78e9f45afbc938cc694555665d2dd.tar.gz
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. (From OE-Core rev: e124eb73e6a66abbf43dffd82b834e906163614b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/recipetool')
-rwxr-xr-xscripts/recipetool2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/recipetool b/scripts/recipetool
index 3765ec7cf9..3a3c9b7445 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -36,8 +36,8 @@ def tinfoil_init(parserecipes):
36 import bb.tinfoil 36 import bb.tinfoil
37 import logging 37 import logging
38 tinfoil = bb.tinfoil.Tinfoil(tracking=True) 38 tinfoil = bb.tinfoil.Tinfoil(tracking=True)
39 tinfoil.prepare(not parserecipes)
40 tinfoil.logger.setLevel(logger.getEffectiveLevel()) 39 tinfoil.logger.setLevel(logger.getEffectiveLevel())
40 tinfoil.prepare(not parserecipes)
41 return tinfoil 41 return tinfoil
42 42
43def main(): 43def main():