]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-{self,}test: Logger change default stream to stdout
authorAníbal Limón <anibal.limon@linux.intel.com>
Mon, 5 Jun 2017 15:46:03 +0000 (10:46 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Jun 2017 16:59:40 +0000 (17:59 +0100)
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@linux.intel.com>
scripts/oe-selftest
scripts/oe-test

index b200acee137109102f25b3f6119846f5b0c5357d..1bf860a41555837bb8b35300ce7f1050b5fbc5b7 100755 (executable)
@@ -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."
index 0a36b78ff72a225baa06350fd7cfcb3cd974b9c0..34d9012d14311b6e7c83fcc535c4a83e08ff4f64 100755 (executable)
@@ -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",