From 27aea960bc0d200f0ec38c8038ef793ba5e1ee53 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Mon, 27 Jun 2016 11:59:48 -0500 Subject: [PATCH] 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. --- tools/test_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/test_api.py b/tools/test_api.py index 5c97a02599..6c71f919ad 100644 --- a/tools/test_api.py +++ b/tools/test_api.py @@ -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)