|
37 | 37 | from subprocess import Popen, PIPE, call
|
38 | 38 |
|
39 | 39 | # Imports related to mbed build api
|
40 |
| -from workspace_tools.build_api import build_project, build_mbed_libs, build_lib |
41 |
| -from workspace_tools.build_api import get_target_supported_toolchains |
42 |
| -from workspace_tools.libraries import LIBRARIES, LIBRARY_MAP |
43 |
| -from workspace_tools.targets import TARGET_MAP |
44 | 40 | from workspace_tools.paths import BUILD_DIR
|
45 | 41 | from workspace_tools.paths import HOST_TESTS
|
46 | 42 | from workspace_tools.tests import TEST_MAP
|
47 | 43 | from workspace_tools.tests import TESTS
|
48 | 44 | from workspace_tools.utils import construct_enum
|
| 45 | +from workspace_tools.targets import TARGET_MAP |
| 46 | +from workspace_tools.build_api import build_project, build_mbed_libs, build_lib |
| 47 | +from workspace_tools.build_api import get_target_supported_toolchains |
| 48 | +from workspace_tools.libraries import LIBRARIES, LIBRARY_MAP |
49 | 49 |
|
50 | 50 |
|
51 | 51 | class ProcessObserver(Thread):
|
@@ -486,7 +486,7 @@ def file_copy_method_selector(self, image_path, disk, copy_method):
|
486 | 486 | resutl_msg = ""
|
487 | 487 | if copy_method == 'cp' or copy_method == 'copy' or copy_method == 'xcopy':
|
488 | 488 | source_path = image_path.encode('ascii', 'ignore')
|
489 |
| - destination_path = os.path.join(disk.encode('ascii', 'ignore'), basename(image_path).encode('ascii', 'ignore')) |
| 489 | + destination_path = os.path.join(disk.encode('ascii', 'ignore'), basename(image_path).encode('ascii', 'ignore')) |
490 | 490 |
|
491 | 491 | cmd = [copy_method, source_path, destination_path]
|
492 | 492 | try:
|
@@ -790,9 +790,9 @@ def print_muts_configuration_from_json(json_data, join_delim=", "):
|
790 | 790 | # We need to check all unique properties for each defined MUT
|
791 | 791 | for k in json_data:
|
792 | 792 | mut_info = json_data[k]
|
793 |
| - for property in mut_info: |
794 |
| - if property not in muts_info_cols: |
795 |
| - muts_info_cols.append(property) |
| 793 | + for mut_property in mut_info: |
| 794 | + if mut_property not in muts_info_cols: |
| 795 | + muts_info_cols.append(mut_property) |
796 | 796 |
|
797 | 797 | # Prepare pretty table object to display all MUTs
|
798 | 798 | pt_cols = ["index"] + muts_info_cols
|
@@ -868,7 +868,7 @@ def print_test_configuration_from_json(json_data, join_delim=", "):
|
868 | 868 | for target in toolchain_conflicts:
|
869 | 869 | if target not in TARGET_MAP:
|
870 | 870 | result += "\t* Target %s unknown\n"% (target)
|
871 |
| - conflict_target_list = ", ".join(toolchain_conflicts[target]) |
| 871 | + conflict_target_list = join_delim.join(toolchain_conflicts[target]) |
872 | 872 | sufix = 's' if len(toolchain_conflicts[target]) > 1 else ''
|
873 | 873 | result += "\t* Target %s does not support %s toolchain%s\n"% (target, conflict_target_list, sufix)
|
874 | 874 | return result
|
|
0 commit comments