Skip to content

Commit e3496b4

Browse files
committed
Fixed icetea warning when icetea is not desired and turn it to error when mbed test --icetea is called
1 parent 485a450 commit e3496b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mbed/mbed.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,8 +2774,8 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
27742774
# Disable icetea if not supported
27752775
if not icetea_supported:
27762776
icetea = False
2777-
if not os.path.exists(os.path.join(getcwd(), 'TEST_APPS')):
2778-
warning("Cannot run icetea tests. Current folder does not contain TEST_APPS folder.")
2777+
if icetea and not os.path.exists(os.path.join(getcwd(), 'TEST_APPS')):
2778+
error("Cannot run icetea tests. Current folder does not contain TEST_APPS folder.", 1)
27792779
icetea = False
27802780

27812781
# Save original working directory
@@ -2870,7 +2870,6 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
28702870
popen(icetea_command_base + ['--compile-list'])
28712871

28722872
if compile_only or build_and_run_tests:
2873-
28742873
# Add icetea binaries in compile list
28752874
tests_by_name_temp = tests_by_name if tests_by_name else ''
28762875
if icetea:

0 commit comments

Comments
 (0)