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.

(From OE-Core rev: 986452c410a958e339f31f8c05461c18a1a15eb5)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Aníbal Limón 2017-06-05 10:46:03 -05:00 committed by Richard Purdie
parent cfa8245e0e
commit c4f6c20472
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ scriptpath.add_bitbake_lib_path()
from oeqa.utils import load_test_components from oeqa.utils import load_test_components
from oeqa.core.exception import OEQAPreRun from oeqa.core.exception import OEQAPreRun
logger = scriptutils.logger_create('oe-selftest') logger = scriptutils.logger_create('oe-selftest', stream=sys.stdout)
def main(): 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." 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."

View File

@ -27,7 +27,7 @@ except ImportError:
from oeqa.utils import load_test_components from oeqa.utils import load_test_components
from oeqa.core.exception import OEQAPreRun from oeqa.core.exception import OEQAPreRun
logger = scriptutils.logger_create('oe-test') logger = scriptutils.logger_create('oe-test', stream=sys.stdout)
def main(): def main():
parser = argparse_oe.ArgumentParser(description="OpenEmbedded test tool", parser = argparse_oe.ArgumentParser(description="OpenEmbedded test tool",