Skip to content

Tool: Use TerminalNotifier in singletest #7124

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
Jun 7, 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
14 changes: 10 additions & 4 deletions tools/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
from tools.utils import argparse_lowercase_type
from tools.utils import argparse_many
from tools.notifier.mock import MockNotifier
from tools.notifier.term import TerminalNotifier

import tools.host_tests.host_tests_plugins as host_tests_plugins

Expand Down Expand Up @@ -387,7 +388,8 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep
jobs=self.opts_jobs,
report=build_report,
properties=build_properties,
build_profile=profile)
build_profile=profile,
notify=TerminalNotifier())

if not build_mbed_libs_result:
print(self.logger.log_line(
Expand Down Expand Up @@ -468,7 +470,8 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep
jobs=self.opts_jobs,
report=build_report,
properties=build_properties,
build_profile=profile)
build_profile=profile,
notify=TerminalNotifier())

except ToolException:
print(self.logger.log_line(
Expand Down Expand Up @@ -507,13 +510,16 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep

project_name = self.opts_firmware_global_name if self.opts_firmware_global_name else None
try:
path = build_project(test.source_dir, join(build_dir, test_id), T,
path = build_project(
test.source_dir, join(build_dir, test_id), T,
toolchain, test.dependencies, clean=clean_project_options,
verbose=self.opts_verbose, name=project_name, macros=MACROS,
inc_dirs=INC_DIRS, jobs=self.opts_jobs, report=build_report,
properties=build_properties, project_id=test_id,
project_description=test.get_description(),
build_profile=profile, stats_depth=stats_depth)
build_profile=profile, stats_depth=stats_depth,
notify=TerminalNotifier(),
)

except Exception as e:
project_name_str = project_name if project_name is not None else test_id
Expand Down