Skip to content

Commit 3874e50

Browse files
Merge pull request #776 from screamerbg/f/icetea_warning
Fix: Icetea warning when icetea is not desired
2 parents 485a450 + d4e0fbb commit 3874e50

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mbed/mbed.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,9 +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.")
2779-
icetea = False
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)
27802779

27812780
# Save original working directory
27822781
orig_path = getcwd()
@@ -2870,7 +2869,6 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
28702869
popen(icetea_command_base + ['--compile-list'])
28712870

28722871
if compile_only or build_and_run_tests:
2873-
28742872
# Add icetea binaries in compile list
28752873
tests_by_name_temp = tests_by_name if tests_by_name else ''
28762874
if icetea:

0 commit comments

Comments
 (0)