From 02be651f881db50bcdb8e6d1e79165ac29a4b404 Mon Sep 17 00:00:00 2001 From: Konrad Weihmann Date: Tue, 10 Nov 2020 20:20:14 +0100 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/core/context.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/lib') 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): self._registry = {} self._registry['cases'] = collections.OrderedDict() + self.results = unittest.TestResult() + unittest.registerResult(self.results) + def _read_modules_from_manifest(self, manifest): if not os.path.exists(manifest): raise OEQAMissingManifest("Manifest does not exist on %s" % manifest) -- cgit v1.2.3-54-g00ecf