mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
testsdk: Enable multiprocess execution
This uses the new concurrenttest code to enable parallel test execution if specified. (From OE-Core rev: 07d19fb3adab7a8d83ba83d9a16395f70d7b7a47) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -65,6 +65,9 @@ class OESDKTestContextExecutor(OETestContextExecutor):
|
||||
sdk_rgroup.add_argument('--sdk-dir', required=False, action='store',
|
||||
help='sdk installed directory')
|
||||
|
||||
self.parser.add_argument('-j', '--num-processes', dest='processes', action='store',
|
||||
type=int, help="number of processes to execute in parallel with")
|
||||
|
||||
@staticmethod
|
||||
def _load_manifest(manifest):
|
||||
pkg_manifest = {}
|
||||
@@ -85,6 +88,7 @@ class OESDKTestContextExecutor(OETestContextExecutor):
|
||||
OESDKTestContextExecutor._load_manifest(args.target_manifest)
|
||||
self.tc_kwargs['init']['host_pkg_manifest'] = \
|
||||
OESDKTestContextExecutor._load_manifest(args.host_manifest)
|
||||
self.tc_kwargs['run']['processes'] = args.processes
|
||||
|
||||
@staticmethod
|
||||
def _get_sdk_environs(sdk_dir):
|
||||
|
||||
Reference in New Issue
Block a user