Skip to content

Commit 49e5381

Browse files
author
Olli-Pekka Puolitaival
committed
Do not use build_data if not needed
1 parent e00d178 commit 49e5381

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
@@ -2680,7 +2680,8 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
26802680
if build_data:
26812681
# Preserve path to given build data
26822682
build_data = os.path.relpath(os.path.join(orig_path, build_data), program.path)
2683-
else:
2683+
elif icetea_supported:
2684+
# Build data needed only if icetea is supported
26842685
# Create the path to the test build data file
26852686
build_data = os.path.join(build_path, 'build_data.json')
26862687

0 commit comments

Comments
 (0)