mirror of https://github.com/ARMmbed/mbed-os.git
Skip target lookup in test builds.
This should allow custom targets to be transferred to each process when building in parallelpull/7518/head
parent
ddc39b33b9
commit
0eafe2c288
|
@ -2225,7 +2225,11 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
|
||||||
execution_directory = "."
|
execution_directory = "."
|
||||||
base_path = norm_relative_path(build_path, execution_directory)
|
base_path = norm_relative_path(build_path, execution_directory)
|
||||||
|
|
||||||
target_name = target.name if isinstance(target, Target) else target
|
if isinstance(target, Target):
|
||||||
|
target_name
|
||||||
|
else:
|
||||||
|
target_name = target
|
||||||
|
target = TARGET_MAP[target_name]
|
||||||
cfg, _, _ = get_config(base_source_paths, target_name, toolchain_name, app_config=app_config)
|
cfg, _, _ = get_config(base_source_paths, target_name, toolchain_name, app_config=app_config)
|
||||||
|
|
||||||
baud_rate = 9600
|
baud_rate = 9600
|
||||||
|
@ -2255,7 +2259,7 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
|
||||||
bin_file = None
|
bin_file = None
|
||||||
test_case_folder_name = os.path.basename(test_paths[0])
|
test_case_folder_name = os.path.basename(test_paths[0])
|
||||||
|
|
||||||
args = (src_paths, test_build_path, target, toolchain_name)
|
args = (src_paths, test_build_path, deepcopy(target), toolchain_name)
|
||||||
kwargs = {
|
kwargs = {
|
||||||
'jobs': 1,
|
'jobs': 1,
|
||||||
'clean': clean,
|
'clean': clean,
|
||||||
|
|
Loading…
Reference in New Issue