Skip to content

Commit 7b926e0

Browse files
Merge pull request #758 from OPpuolitaival/warning
Add warning if there is no TEST_APPS folder
2 parents a4e014f + 35beab5 commit 7b926e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mbed/mbed.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2771,6 +2771,9 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
27712771
# Disable icetea if not supported
27722772
if not icetea_supported:
27732773
icetea = False
2774+
if not os.path.exists(os.path.join(getcwd(), 'TEST_APPS')):
2775+
warning("Cannot run icetea tests. Current folder does not contain TEST_APPS folder.")
2776+
icetea = False
27742777

27752778
# Save original working directory
27762779
orig_path = getcwd()
@@ -2813,7 +2816,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
28132816
env=env)
28142817
else:
28152818
warning("Unit testing is not supported with this Mbed OS version.")
2816-
else:
2819+
elif icetea or greentea:
28172820
target = program.get_target(target)
28182821
tchain = program.get_toolchain(toolchain)
28192822

0 commit comments

Comments
 (0)