Changing name of test binaries to just test case folder name.

This mitigates the Windows paths issue by shortening the test binary name to just the
test case folder name instead of the full unique test name used by the
tools. This doesn't solve the Windows path limit of 260 characters, but it
does reduce the characters used.
pull/2062/head
Brian Daniels 2016-06-27 11:59:48 -05:00
parent 0cf924429a
commit 27aea960bc
1 changed files with 5 additions and 1 deletions

View File

@ -2033,13 +2033,17 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
test_build_path = os.path.join(build_path, test_path)
src_path = base_source_paths + [test_path]
bin_file = None
test_case_folder_name = os.path.basename(test_path)
try:
bin_file = build_project(src_path, test_build_path, target, toolchain_name,
options=options,
jobs=jobs,
clean=clean,
macros=macros,
name=test_name,
name=test_case_folder_name,
project_id=test_name,
report=report,
properties=properties,
verbose=verbose)