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
Brian Daniels 2016-11-16 15:56:40 -08:00
parent aeabcc9472
commit 57e693de86
1 changed files with 8 additions and 1 deletions

View File

@ -2092,6 +2092,12 @@ def build_test_worker(*args, **kwargs):
'kwargs': 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: try:
bin_file = build_project(*args, **kwargs) bin_file = build_project(*args, **kwargs)
ret['result'] = True ret['result'] = True
@ -2165,7 +2171,8 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
'verbose': verbose, 'verbose': verbose,
'app_config': app_config, 'app_config': app_config,
'build_profile': build_profile, 'build_profile': build_profile,
'silent': True 'silent': True,
'toolchain_paths': TOOLCHAIN_PATHS
} }
results.append(p.apply_async(build_test_worker, args, kwargs)) results.append(p.apply_async(build_test_worker, args, kwargs))