mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
5e0efc9942
commit
60ade6074e
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user