diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-05-26 15:37:30 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-30 10:15:22 +0100 |
commit | 8787fba3df8acd9d2438669d20b1a5060caa9022 (patch) | |
tree | 53b2dc772aefbbc8cdbeb179880f937022055953 /meta/lib/oeqa/core/runner.py | |
parent | c45546b771c3158e66b2df504576d6dc1758ea75 (diff) | |
download | openembedded-core-8787fba3df8acd9d2438669d20b1a5060caa9022.tar.gz openembedded-core-8787fba3df8acd9d2438669d20b1a5060caa9022.tar.bz2 openembedded-core-8787fba3df8acd9d2438669d20b1a5060caa9022.zip |
oeqa/core: Don't expose OEStreamLogger in OETestContext
The OEStreamLogger class is used for redirect PyUnit output
to a certain logger so there is not need to expose at level
of OETestContext because only OETestRunner needs to know.
[YOCTO #11450]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/runner.py')
-rw-r--r-- | meta/lib/oeqa/core/runner.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py index 44ffecb0cd..40fbf3b423 100644 --- a/meta/lib/oeqa/core/runner.py +++ b/meta/lib/oeqa/core/runner.py @@ -48,12 +48,15 @@ class OETestResult(_TestResult): super(OETestResult, self).startTest(test) class OETestRunner(_TestRunner): + streamLoggerClass = OEStreamLogger + def __init__(self, tc, *args, **kwargs): if xmlEnabled: if not kwargs.get('output'): kwargs['output'] = os.path.join(os.getcwd(), 'TestResults_%s_%s' % (time.strftime("%Y%m%d%H%M%S"), os.getpid())) + kwargs['stream'] = self.streamLoggerClass(tc.logger) super(OETestRunner, self).__init__(*args, **kwargs) self.tc = tc self.resultclass = OETestResult |