mirror of https://github.com/ARMmbed/mbed-os.git
Use TerminalNotifier in singletest
parent
74aec930e6
commit
8d03fe2de4
|
@ -77,6 +77,7 @@ from tools.utils import argparse_uppercase_type
|
||||||
from tools.utils import argparse_lowercase_type
|
from tools.utils import argparse_lowercase_type
|
||||||
from tools.utils import argparse_many
|
from tools.utils import argparse_many
|
||||||
from tools.notifier.mock import MockNotifier
|
from tools.notifier.mock import MockNotifier
|
||||||
|
from tools.notifier.term import TerminalNotifier
|
||||||
|
|
||||||
import tools.host_tests.host_tests_plugins as host_tests_plugins
|
import tools.host_tests.host_tests_plugins as host_tests_plugins
|
||||||
|
|
||||||
|
@ -387,7 +388,8 @@ class SingleTestRunner(object):
|
||||||
jobs=self.opts_jobs,
|
jobs=self.opts_jobs,
|
||||||
report=build_report,
|
report=build_report,
|
||||||
properties=build_properties,
|
properties=build_properties,
|
||||||
build_profile=profile)
|
build_profile=profile,
|
||||||
|
notify=TerminalNotifier())
|
||||||
|
|
||||||
if not build_mbed_libs_result:
|
if not build_mbed_libs_result:
|
||||||
print(self.logger.log_line(
|
print(self.logger.log_line(
|
||||||
|
@ -468,7 +470,8 @@ class SingleTestRunner(object):
|
||||||
jobs=self.opts_jobs,
|
jobs=self.opts_jobs,
|
||||||
report=build_report,
|
report=build_report,
|
||||||
properties=build_properties,
|
properties=build_properties,
|
||||||
build_profile=profile)
|
build_profile=profile,
|
||||||
|
notify=TerminalNotifier())
|
||||||
|
|
||||||
except ToolException:
|
except ToolException:
|
||||||
print(self.logger.log_line(
|
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
|
project_name = self.opts_firmware_global_name if self.opts_firmware_global_name else None
|
||||||
try:
|
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,
|
toolchain, test.dependencies, clean=clean_project_options,
|
||||||
verbose=self.opts_verbose, name=project_name, macros=MACROS,
|
verbose=self.opts_verbose, name=project_name, macros=MACROS,
|
||||||
inc_dirs=INC_DIRS, jobs=self.opts_jobs, report=build_report,
|
inc_dirs=INC_DIRS, jobs=self.opts_jobs, report=build_report,
|
||||||
properties=build_properties, project_id=test_id,
|
properties=build_properties, project_id=test_id,
|
||||||
project_description=test.get_description(),
|
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:
|
except Exception as e:
|
||||||
project_name_str = project_name if project_name is not None else test_id
|
project_name_str = project_name if project_name is not None else test_id
|
||||||
|
|
Loading…
Reference in New Issue