summaryrefslogtreecommitdiffstats
path: root/scripts/oe-test
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-05-30 10:15:22 +0100
commitbafb7e221d40d7a87a02cec8a97d98eec7c23438 (patch)
tree21fe9e5e212f2f8c11093983512b8606c27048c2 /scripts/oe-test
parent05b16219698fbd30ec76697e1b3be6d31e8f8878 (diff)
downloadopenembedded-core-bafb7e221d40d7a87a02cec8a97d98eec7c23438.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. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-test')
-rwxr-xr-xscripts/oe-test3
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:
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