From 60ade6074e8b1320f72c7d011b13bac9fa7f874e Mon Sep 17 00:00:00 2001 From: Leonardo Sandoval Date: Fri, 26 May 2017 15:37:53 -0500 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/core/context.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/lib/oeqa/core/context.py') 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): self.module_paths = args.CASES_PATHS + def _pre_run(self): + pass + def run(self, logger, args): self._process_args(logger, args) @@ -152,6 +155,7 @@ class OETestContextExecutor(object): if args.list_tests: rc = self.tc.listTests(args.list_tests, **self.tc_kwargs['run']) else: + self._pre_run() rc = self.tc.runTests(**self.tc_kwargs['run']) rc.logSummary(self.name) rc.logDetails() -- cgit v1.2.3-54-g00ecf