Skip to content

Commit 99df848

Browse files
author
Cruz Monrreal
authored
Merge pull request #6968 from theotherjimmy/test-relpath
Test build: Reduce include command length
2 parents a404a93 + 3e7fd9e commit 99df848

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

tools/test.py

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,23 @@
228228
else:
229229
# Build all the tests
230230
notify = TerminalNotifier(options.verbose)
231-
test_build_success, test_build = build_tests(tests, [options.build_dir], options.build_dir, mcu, toolchain,
232-
clean=options.clean,
233-
report=build_report,
234-
properties=build_properties,
235-
macros=options.macros,
236-
notify=notify,
237-
jobs=options.jobs,
238-
continue_on_build_fail=options.continue_on_build_fail,
239-
app_config=config,
240-
build_profile=profile,
241-
stats_depth=options.stats_depth,
242-
ignore=options.ignore)
231+
test_build_success, test_build = build_tests(
232+
tests,
233+
[os.path.relpath(options.build_dir)],
234+
options.build_dir,
235+
mcu,
236+
toolchain,
237+
clean=options.clean,
238+
report=build_report,
239+
properties=build_properties,
240+
macros=options.macros,
241+
notify=notify,
242+
jobs=options.jobs,
243+
continue_on_build_fail=options.continue_on_build_fail,
244+
app_config=config,
245+
build_profile=profile,
246+
stats_depth=options.stats_depth,
247+
ignore=options.ignore)
243248

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

0 commit comments

Comments
 (0)