mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Fix broken unit testing when mbed framework is used
This commit is contained in:
@ -95,8 +95,6 @@ def BuildProgram(env):
|
|||||||
|
|
||||||
if "__debug" in COMMAND_LINE_TARGETS:
|
if "__debug" in COMMAND_LINE_TARGETS:
|
||||||
env.ProcessDebug()
|
env.ProcessDebug()
|
||||||
if "__test" in COMMAND_LINE_TARGETS:
|
|
||||||
env.ProcessTest()
|
|
||||||
|
|
||||||
# process extra flags from board
|
# process extra flags from board
|
||||||
if "BOARD" in env and "build.extra_flags" in env.BoardConfig():
|
if "BOARD" in env and "build.extra_flags" in env.BoardConfig():
|
||||||
@ -114,6 +112,9 @@ def BuildProgram(env):
|
|||||||
# remove specified flags
|
# remove specified flags
|
||||||
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
||||||
|
|
||||||
|
if "__test" in COMMAND_LINE_TARGETS:
|
||||||
|
env.ProcessTest()
|
||||||
|
|
||||||
# build project with dependencies
|
# build project with dependencies
|
||||||
_build_project_deps(env)
|
_build_project_deps(env)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user