Skip to content

Commit 113213f

Browse files
Append profile to test build paths, too.
1 parent bd8c0f1 commit 113213f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mbed/mbed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ def status_(ignore=False):
24332433
status_(ignore)
24342434

24352435

2436-
# Helper function for compile subcommand
2436+
# Helper function for compile and test subcommands
24372437
def _safe_append_profile_to_build_path(build_path, profile):
24382438
if profile:
24392439
# profile is (or can be) a list, so just get the first element
@@ -2614,6 +2614,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
26142614
build_path = build
26152615
if not build_path:
26162616
build_path = os.path.join(os.path.relpath(program.path, orig_path), program.build_dir, 'tests', target.upper(), tchain.upper())
2617+
build_path = _safe_append_profile_to_build_path(build_path, profile)
26172618

26182619
if test_spec:
26192620
# Preserve path to given test spec

0 commit comments

Comments
 (0)