summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/context.py
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2017-05-26 15:37:53 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-02 13:36:14 +0100
commit60ade6074e8b1320f72c7d011b13bac9fa7f874e (patch)
tree9b8b8f5f00b04e657c27cb15c3e18aab1372371e /meta/lib/oeqa/core/context.py
parent5e0efc99426d52580018274adfb1199898f3b863 (diff)
downloadpoky-60ade6074e8b1320f72c7d011b13bac9fa7f874e.tar.gz
oeqa/core/context: Include a _pre_run method
This pre runner will serve to allow Test components executes code previously of the run a suite. (From OE-Core rev: bafb7e221d40d7a87a02cec8a97d98eec7c23438) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/context.py')
-rw-r--r--meta/lib/oeqa/core/context.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py
index 6667f46f1e..5f399fdfcc 100644
--- a/meta/lib/oeqa/core/context.py
+++ b/meta/lib/oeqa/core/context.py
@@ -143,6 +143,9 @@ class OETestContextExecutor(object):
143 143
144 self.module_paths = args.CASES_PATHS 144 self.module_paths = args.CASES_PATHS
145 145
146 def _pre_run(self):
147 pass
148
146 def run(self, logger, args): 149 def run(self, logger, args):
147 self._process_args(logger, args) 150 self._process_args(logger, args)
148 151
@@ -152,6 +155,7 @@ class OETestContextExecutor(object):
152 if args.list_tests: 155 if args.list_tests:
153 rc = self.tc.listTests(args.list_tests, **self.tc_kwargs['run']) 156 rc = self.tc.listTests(args.list_tests, **self.tc_kwargs['run'])
154 else: 157 else:
158 self._pre_run()
155 rc = self.tc.runTests(**self.tc_kwargs['run']) 159 rc = self.tc.runTests(**self.tc_kwargs['run'])
156 rc.logSummary(self.name) 160 rc.logSummary(self.name)
157 rc.logDetails() 161 rc.logDetails()