Skip to content

Commit 27aea96

Browse files
committed
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.
1 parent 0cf9244 commit 27aea96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/test_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,13 +2033,17 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
20332033
test_build_path = os.path.join(build_path, test_path)
20342034
src_path = base_source_paths + [test_path]
20352035
bin_file = None
2036+
test_case_folder_name = os.path.basename(test_path)
2037+
2038+
20362039
try:
20372040
bin_file = build_project(src_path, test_build_path, target, toolchain_name,
20382041
options=options,
20392042
jobs=jobs,
20402043
clean=clean,
20412044
macros=macros,
2042-
name=test_name,
2045+
name=test_case_folder_name,
2046+
project_id=test_name,
20432047
report=report,
20442048
properties=properties,
20452049
verbose=verbose)

0 commit comments

Comments
 (0)