Fix broken unit testing when mbed framework is used

This commit is contained in:
Ivan Kravets
2018-07-28 12:49:22 +03:00
parent 9191ea97fe
commit 2f2cfc2d84

View File

@ -95,8 +95,6 @@ def BuildProgram(env):
if "__debug" in COMMAND_LINE_TARGETS:
env.ProcessDebug()
if "__test" in COMMAND_LINE_TARGETS:
env.ProcessTest()
# process extra flags from board
if "BOARD" in env and "build.extra_flags" in env.BoardConfig():
@ -114,6 +112,9 @@ def BuildProgram(env):
# remove specified flags
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
if "__test" in COMMAND_LINE_TARGETS:
env.ProcessTest()
# build project with dependencies
_build_project_deps(env)