Skip to content

Commit dbf5527

Browse files
committed
Changing build directory for tests to .build/tests.
This change is necessary because it allows mbed-cli to properly place the build artifacts for each test case. Before, there were left over build artifacts from previous builds in the main build directory that caused issues for the next builds.
1 parent c979499 commit dbf5527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
12771277
if compile_tests:
12781278
# Compile tests
12791279
if not build:
1280-
build = os.path.join(os.path.relpath(root_path, orig_path), '.build', target, tchain)
1280+
build = os.path.join(os.path.relpath(root_path, orig_path), '.build/tests', target, tchain)
12811281

12821282
popen(['python', os.path.join(tools_dir, 'test.py')]
12831283
+ ['-t', tchain, '-m', target]

0 commit comments

Comments
 (0)