From 3e7fd9e0f001ab3eb7e86c23465ef79003c47e8a Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Mon, 21 May 2018 13:48:41 -0500 Subject: [PATCH] Use relative path for scanning built mbed-os --- tools/test.py | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/tools/test.py b/tools/test.py index 3503ed3941..df9b837844 100644 --- a/tools/test.py +++ b/tools/test.py @@ -228,18 +228,23 @@ if __name__ == '__main__': else: # Build all the tests notify = TerminalNotifier(options.verbose) - test_build_success, test_build = build_tests(tests, [options.build_dir], options.build_dir, mcu, toolchain, - clean=options.clean, - report=build_report, - properties=build_properties, - macros=options.macros, - notify=notify, - jobs=options.jobs, - continue_on_build_fail=options.continue_on_build_fail, - app_config=config, - build_profile=profile, - stats_depth=options.stats_depth, - ignore=options.ignore) + test_build_success, test_build = build_tests( + tests, + [os.path.relpath(options.build_dir)], + options.build_dir, + mcu, + toolchain, + clean=options.clean, + report=build_report, + properties=build_properties, + macros=options.macros, + notify=notify, + jobs=options.jobs, + continue_on_build_fail=options.continue_on_build_fail, + app_config=config, + build_profile=profile, + stats_depth=options.stats_depth, + ignore=options.ignore) # If a path to a test spec is provided, write it to a file if options.test_spec: