mirror of https://github.com/ARMmbed/mbed-os.git
Passing toolchain path info to subprocesses.
Since the toolchain path info lives as a global variable, its not propigating to the subprocesses that are created to compile the tests in parallel. This change manually passes these global variables and then reassigns them.pull/3274/head
parent
aeabcc9472
commit
57e693de86
|
@ -2092,6 +2092,12 @@ def build_test_worker(*args, **kwargs):
|
|||
'kwargs': kwargs
|
||||
}
|
||||
|
||||
# Use parent TOOLCHAIN_PATHS variable
|
||||
for key, value in kwargs['toolchain_paths'].iteritems():
|
||||
TOOLCHAIN_PATHS[key] = value
|
||||
|
||||
del kwargs['toolchain_paths']
|
||||
|
||||
try:
|
||||
bin_file = build_project(*args, **kwargs)
|
||||
ret['result'] = True
|
||||
|
@ -2165,7 +2171,8 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
|
|||
'verbose': verbose,
|
||||
'app_config': app_config,
|
||||
'build_profile': build_profile,
|
||||
'silent': True
|
||||
'silent': True,
|
||||
'toolchain_paths': TOOLCHAIN_PATHS
|
||||
}
|
||||
|
||||
results.append(p.apply_async(build_test_worker, args, kwargs))
|
||||
|
|
Loading…
Reference in New Issue