diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-05-26 15:37:53 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-02 13:36:14 +0100 |
commit | 60ade6074e8b1320f72c7d011b13bac9fa7f874e (patch) | |
tree | 9b8b8f5f00b04e657c27cb15c3e18aab1372371e /scripts | |
parent | 5e0efc99426d52580018274adfb1199898f3b863 (diff) | |
download | poky-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 'scripts')
-rwxr-xr-x | scripts/oe-test | 3 |
1 files changed, 3 insertions, 0 deletions
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: | |||
26 | pass | 26 | pass |
27 | 27 | ||
28 | from oeqa.core.context import OETestContextExecutor | 28 | from oeqa.core.context import OETestContextExecutor |
29 | from oeqa.core.exception import OEQAPreRun | ||
29 | 30 | ||
30 | logger = scriptutils.logger_create('oe-test') | 31 | logger = scriptutils.logger_create('oe-test') |
31 | 32 | ||
@@ -92,6 +93,8 @@ def main(): | |||
92 | ret = err.code | 93 | ret = err.code |
93 | except argparse_oe.ArgumentUsageError as ae: | 94 | except argparse_oe.ArgumentUsageError as ae: |
94 | parser.error_subcommand(ae.message, ae.subcommand) | 95 | parser.error_subcommand(ae.message, ae.subcommand) |
96 | except OEQAPreRun as pr: | ||
97 | ret = 1 | ||
95 | 98 | ||
96 | return ret | 99 | return ret |
97 | 100 | ||