mirror of https://github.com/ARMmbed/mbed-os.git
Mock config in toolchain tests
parent
58167a2071
commit
2821fd548f
|
@ -42,6 +42,7 @@ def test_toolchain_profile_c(profile, source_file):
|
||||||
toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile)
|
toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile)
|
||||||
toolchain.inc_md5 = ""
|
toolchain.inc_md5 = ""
|
||||||
toolchain.build_dir = ""
|
toolchain.build_dir = ""
|
||||||
|
toolchain.config = MagicMock(app_config_locaiton=None)
|
||||||
compile_command = toolchain.compile_command(to_compile,
|
compile_command = toolchain.compile_command(to_compile,
|
||||||
to_compile + ".o", [])
|
to_compile + ".o", [])
|
||||||
for parameter in profile['c'] + profile['common']:
|
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 = tc_class(TARGET_MAP["K64F"], build_profile=profile)
|
||||||
toolchain.inc_md5 = ""
|
toolchain.inc_md5 = ""
|
||||||
toolchain.build_dir = ""
|
toolchain.build_dir = ""
|
||||||
|
toolchain.config = MagicMock(app_config_locaiton=None)
|
||||||
compile_command = toolchain.compile_command(to_compile,
|
compile_command = toolchain.compile_command(to_compile,
|
||||||
to_compile + ".o", [])
|
to_compile + ".o", [])
|
||||||
for parameter in profile['cxx'] + profile['common']:
|
for parameter in profile['cxx'] + profile['common']:
|
||||||
|
|
Loading…
Reference in New Issue