[oe-commits] [openembedded-core] 18/18: scripts/oe-{self, }test: Logger change default stream to stdout

git at git.openembedded.org git at git.openembedded.org
Mon Jun 5 15:57:54 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 48ef17a67efafdae19c561a851e6bf09a462633b
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Mon Jun 5 10:46:03 2017 -0500

    scripts/oe-{self,}test: Logger change default stream to stdout
    
    By default python logging module uses stderr as default stream
    for output but is unix-like to use stdout instead, so change it.
    
    Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
 scripts/oe-selftest | 2 +-
 scripts/oe-test     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index b200ace..1bf860a 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -43,7 +43,7 @@ scriptpath.add_bitbake_lib_path()
 from oeqa.utils import load_test_components
 from oeqa.core.exception import OEQAPreRun
 
-logger = scriptutils.logger_create('oe-selftest')
+logger = scriptutils.logger_create('oe-selftest', stream=sys.stdout)
 
 def main():
     description = "Script that runs unit tests against bitbake and other Yocto related tools. The goal is to validate tools functionality and metadata integrity. Refer to https://wiki.yoctoproject.org/wiki/Oe-selftest for more information."
diff --git a/scripts/oe-test b/scripts/oe-test
index 0a36b78..34d9012 100755
--- a/scripts/oe-test
+++ b/scripts/oe-test
@@ -27,7 +27,7 @@ except ImportError:
 from oeqa.utils import load_test_components
 from oeqa.core.exception import OEQAPreRun
 
-logger = scriptutils.logger_create('oe-test')
+logger = scriptutils.logger_create('oe-test', stream=sys.stdout)
 
 def main():
     parser = argparse_oe.ArgumentParser(description="OpenEmbedded test tool",

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


More information about the Openembedded-commits mailing list