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 --- scripts/oe-test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/oe-test') diff --git a/scripts/oe-test b/scripts/oe-test index a1d282db33..f90d85b3da 100755 --- a/scripts/oe-test +++ b/scripts/oe-test @@ -26,6 +26,7 @@ except ImportError: pass from oeqa.core.context import OETestContextExecutor +from oeqa.core.exception import OEQAPreRun logger = scriptutils.logger_create('oe-test') @@ -92,6 +93,8 @@ def main(): ret = err.code except argparse_oe.ArgumentUsageError as ae: parser.error_subcommand(ae.message, ae.subcommand) + except OEQAPreRun as pr: + ret = 1 return ret -- cgit v1.2.3-54-g00ecf