diff --git a/workspace_tools/host_tests/host_test.py b/workspace_tools/host_tests/host_test.py index 78aa4bcaa2..103df83924 100644 --- a/workspace_tools/host_tests/host_test.py +++ b/workspace_tools/host_tests/host_test.py @@ -39,7 +39,6 @@ from workspace_tools.test_api import get_autodetected_MUTS_list from workspace_tools.test_api import get_module_avail - class Mbed: """ Base class for a host driven test """ @@ -147,7 +146,6 @@ class Mbed: mut = muts_list[1] self.port = mut['port'] found = True - break else: sleep(3) @@ -252,9 +250,7 @@ class Mbed: Please refer to host_test_plugins functionality """ # Flush serials to get only input after reset - #self.flush() - self.serial.flushInput() - self.serial.flushOutput() + self.flush() if self.options.forced_reset_type: result = host_tests_plugins.call_plugin('ResetMethod', self.options.forced_reset_type, disk=self.disk) else: @@ -289,7 +285,6 @@ class Mbed: copy_method = 'shell' result = host_tests_plugins.call_plugin('CopyMethod', copy_method, image_path=image_path, destination_disk=disk, program_cycle_s=self.program_cycle_s, target_mcu=self.options.micro) - return result; def flush(self): diff --git a/workspace_tools/test_api.py b/workspace_tools/test_api.py index 29c8d22f69..c23c37fcec 100644 --- a/workspace_tools/test_api.py +++ b/workspace_tools/test_api.py @@ -1707,6 +1707,7 @@ def get_autodetected_MUTS(mbeds_list, platform_name_filter=None): index = 1 for mut in mbeds_list: # Filter the MUTS if a filter is specified + if platform_name_filter and not mut['platform_name'] in platform_name_filter: continue