summaryrefslogtreecommitdiffstats
path: root/meta
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-20 10:44:34 +0000
commit51e39a58b40887e2eb29f07cd5c153708099bfde (patch)
tree34f972bb3ceecc7d7801b15a1e5e36f5d639914e /meta
parent81c52d0fabdd4404b2bb1c11ae341bb8b14a50c9 (diff)
downloadpoky-51e39a58b40887e2eb29f07cd5c153708099bfde.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: 07a3ea1aece5c67d75b60417ee0978cc0e15719a) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a97ae47525157871b6c098ffc352293e365a4335) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 4705d608ac..4ce3089ad0 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)