Skip to content

Commit 2821fd5

Browse files
committed
Mock config in toolchain tests
1 parent 58167a2 commit 2821fd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/test/toolchains/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_toolchain_profile_c(profile, source_file):
4242
toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile)
4343
toolchain.inc_md5 = ""
4444
toolchain.build_dir = ""
45+
toolchain.config = MagicMock(app_config_locaiton=None)
4546
compile_command = toolchain.compile_command(to_compile,
4647
to_compile + ".o", [])
4748
for parameter in profile['c'] + profile['common']:
@@ -67,6 +68,7 @@ def test_toolchain_profile_cpp(profile, source_file):
6768
toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile)
6869
toolchain.inc_md5 = ""
6970
toolchain.build_dir = ""
71+
toolchain.config = MagicMock(app_config_locaiton=None)
7072
compile_command = toolchain.compile_command(to_compile,
7173
to_compile + ".o", [])
7274
for parameter in profile['cxx'] + profile['common']:

0 commit comments

Comments
 (0)