diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-06-05 10:46:03 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-06 19:02:44 +0100 |
commit | c4f6c20472bdc26b03ea11b9ddc48c9cb5bc07cf (patch) | |
tree | cba4c706328ef58f60bbec20fab19b1f599eb713 | |
parent | cfa8245e0e057db5bc3de2b4acbc783c28ec7c73 (diff) | |
download | poky-c4f6c20472bdc26b03ea11b9ddc48c9cb5bc07cf.tar.gz |
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>
-rwxr-xr-x | scripts/oe-selftest | 2 | ||||
-rwxr-xr-x | scripts/oe-test | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest index b200acee13..1bf860a415 100755 --- a/scripts/oe-selftest +++ b/scripts/oe-selftest | |||
@@ -43,7 +43,7 @@ scriptpath.add_bitbake_lib_path() | |||
43 | from oeqa.utils import load_test_components | 43 | from oeqa.utils import load_test_components |
44 | from oeqa.core.exception import OEQAPreRun | 44 | from oeqa.core.exception import OEQAPreRun |
45 | 45 | ||
46 | logger = scriptutils.logger_create('oe-selftest') | 46 | logger = scriptutils.logger_create('oe-selftest', stream=sys.stdout) |
47 | 47 | ||
48 | def main(): | 48 | def main(): |
49 | 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." | 49 | 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 0a36b78ff7..34d9012d14 100755 --- a/scripts/oe-test +++ b/scripts/oe-test | |||
@@ -27,7 +27,7 @@ except ImportError: | |||
27 | from oeqa.utils import load_test_components | 27 | from oeqa.utils import load_test_components |
28 | from oeqa.core.exception import OEQAPreRun | 28 | from oeqa.core.exception import OEQAPreRun |
29 | 29 | ||
30 | logger = scriptutils.logger_create('oe-test') | 30 | logger = scriptutils.logger_create('oe-test', stream=sys.stdout) |
31 | 31 | ||
32 | def main(): | 32 | def main(): |
33 | parser = argparse_oe.ArgumentParser(description="OpenEmbedded test tool", | 33 | parser = argparse_oe.ArgumentParser(description="OpenEmbedded test tool", |