Skip to content

Commit a4e014f

Browse files
Merge pull request #755 from OPpuolitaival/initialize_tchain
initialize tchain variable before usage
2 parents 9a8f7a2 + a6da317 commit a4e014f

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
@@ -2753,6 +2753,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
27532753
app_config=None, test_config=None, coverage=None, make_program=None,
27542754
new=None, generator=None, regex=None, unittests=None,
27552755
build_data=None, greentea=None, icetea=None):
2756+
27562757
# Default behaviour is to run only greentea tests
27572758
if not (greentea or icetea or unittests):
27582759
greentea = True
@@ -2927,7 +2928,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
29272928
if run_only or build_and_run_tests:
29282929
popen(icetea_command)
29292930

2930-
program.set_defaults(target=target, toolchain=tchain)
2931+
program.set_defaults(target=target, toolchain=tchain)
29312932

29322933

29332934
# device management commands

0 commit comments

Comments
 (0)