Skip to content

Commit 43024ca

Browse files
theotherjimmyadbridge
authored andcommitted
Use relative path for scanning built mbed-os
1 parent db580fa commit 43024ca

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

tools/test.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -230,19 +230,24 @@
230230
print("Failed to build library")
231231
else:
232232
# Build all the tests
233-
234-
test_build_success, test_build = build_tests(tests, [options.build_dir], options.build_dir, mcu, toolchain,
235-
clean=options.clean,
236-
report=build_report,
237-
properties=build_properties,
238-
macros=options.macros,
239-
verbose=options.verbose,
240-
notify=notify,
241-
jobs=options.jobs,
242-
continue_on_build_fail=options.continue_on_build_fail,
243-
app_config=config,
244-
build_profile=profile,
245-
stats_depth=options.stats_depth)
233+
notify = TerminalNotifier(options.verbose)
234+
test_build_success, test_build = build_tests(
235+
tests,
236+
[os.path.relpath(options.build_dir)],
237+
options.build_dir,
238+
mcu,
239+
toolchain,
240+
clean=options.clean,
241+
report=build_report,
242+
properties=build_properties,
243+
macros=options.macros,
244+
notify=notify,
245+
jobs=options.jobs,
246+
continue_on_build_fail=options.continue_on_build_fail,
247+
app_config=config,
248+
build_profile=profile,
249+
stats_depth=options.stats_depth,
250+
ignore=options.ignore)
246251

247252
# If a path to a test spec is provided, write it to a file
248253
if options.test_spec:

0 commit comments

Comments
 (0)