Skip to content

Add warning if there is no TEST_APPS folder #758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mbed/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2771,6 +2771,9 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False,
# Disable icetea if not supported
if not icetea_supported:
icetea = False
if not os.path.exists(os.path.join(getcwd(), 'TEST_APPS')):
warning("Cannot run icetea tests. Current folder does not contain TEST_APPS folder.")
icetea = False

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

Expand Down