From 2821fd548fdc3a56f0016ad858b592d5d4c73c6b Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Fri, 12 May 2017 14:04:08 -0500 Subject: [PATCH] Mock config in toolchain tests --- tools/test/toolchains/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/test/toolchains/api.py b/tools/test/toolchains/api.py index 01a684fae8..b836cbda9e 100644 --- a/tools/test/toolchains/api.py +++ b/tools/test/toolchains/api.py @@ -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']: