From 8d03fe2de4185bccaea6cdaaf0f3f3262ce84cd1 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 5 Jun 2018 09:31:20 -0500 Subject: [PATCH] Use TerminalNotifier in singletest --- tools/test_api.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tools/test_api.py b/tools/test_api.py index 53edbd2f11..988b8abf1a 100644 --- a/tools/test_api.py +++ b/tools/test_api.py @@ -77,6 +77,7 @@ from tools.utils import argparse_uppercase_type 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 @@ -387,7 +388,8 @@ class SingleTestRunner(object): 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( @@ -468,7 +470,8 @@ class SingleTestRunner(object): 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( @@ -507,13 +510,16 @@ class SingleTestRunner(object): 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