Skip to content

Commit 81f969e

Browse files
committed
Reduce memory consumption and lock contension
29% speedup (old: 45sec, new: 35sec) on my machine
1 parent c186c3c commit 81f969e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@
171171
else:
172172
tests = all_tests
173173

174-
notify = TerminalNotifier(options.verbose)
175174

176175
if options.list:
177176
# Print available tests in order and exit
@@ -195,6 +194,7 @@
195194
profile = extract_profile(parser, options, toolchain)
196195
try:
197196
# Build sources
197+
notify = TerminalNotifier(options.verbose)
198198
build_library(base_source_paths, options.build_dir, mcu,
199199
toolchain, jobs=options.jobs,
200200
clean=options.clean, report=build_report,
@@ -219,6 +219,7 @@
219219
print("Failed to build library")
220220
else:
221221
# Build all the tests
222+
notify = TerminalNotifier(options.verbose)
222223
test_build_success, test_build = build_tests(tests, [options.build_dir], options.build_dir, mcu, toolchain,
223224
clean=options.clean,
224225
report=build_report,

0 commit comments

Comments
 (0)