Mock config in toolchain tests

pull/4202/head
Jimmy Brisson 2017-05-12 14:04:08 -05:00
parent 58167a2071
commit 2821fd548f
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ def test_toolchain_profile_c(profile, source_file):
toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile)
toolchain.inc_md5 = ""
toolchain.build_dir = ""
toolchain.config = MagicMock(app_config_locaiton=None)
compile_command = toolchain.compile_command(to_compile,
to_compile + ".o", [])
for parameter in profile['c'] + profile['common']:
@ -67,6 +68,7 @@ def test_toolchain_profile_cpp(profile, source_file):
toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile)
toolchain.inc_md5 = ""
toolchain.build_dir = ""
toolchain.config = MagicMock(app_config_locaiton=None)
compile_command = toolchain.compile_command(to_compile,
to_compile + ".o", [])
for parameter in profile['cxx'] + profile['common']: