Skip to content

Fix: Icetea warning when icetea is not desired #776

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 2 commits into from
Oct 31, 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
6 changes: 2 additions & 4 deletions mbed/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2774,9 +2774,8 @@ 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
if icetea and not os.path.exists(os.path.join(getcwd(), 'TEST_APPS')):
error("Cannot run icetea tests. Current folder does not contain TEST_APPS folder.", 1)

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

if compile_only or build_and_run_tests:

# Add icetea binaries in compile list
tests_by_name_temp = tests_by_name if tests_by_name else ''
if icetea:
Expand Down