summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2020-11-10 20:20:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-11 10:08:12 +0000
commit02be651f881db50bcdb8e6d1e79165ac29a4b404 (patch)
treeb38eceed94e2b5312f79557e922cc8fb0f72a89e /meta/lib
parent8d8a840d0250a583d332564e024770e37bb34cfb (diff)
downloadpoky-02be651f881db50bcdb8e6d1e79165ac29a4b404.tar.gz
oeqa/core/context: expose results as variable
register an unittest handler for testresults and expose it as variable result. With this even partial results from an interrupted test suite run can be made available (From OE-Core rev: a97ae47525157871b6c098ffc352293e365a4335) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/core/context.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index 7d3fa3b84a..84b43a93e1 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -31,6 +31,9 @@ class OETestContext(object):
31 self._registry = {} 31 self._registry = {}
32 self._registry['cases'] = collections.OrderedDict() 32 self._registry['cases'] = collections.OrderedDict()
33 33
34 self.results = unittest.TestResult()
35 unittest.registerResult(self.results)
36
34 def _read_modules_from_manifest(self, manifest): 37 def _read_modules_from_manifest(self, manifest):
35 if not os.path.exists(manifest): 38 if not os.path.exists(manifest):
36 raise OEQAMissingManifest("Manifest does not exist on %s" % manifest) 39 raise OEQAMissingManifest("Manifest does not exist on %s" % manifest)