mirror of https://github.com/ARMmbed/mbed-os.git
removed test serial flush
parent
e895edd912
commit
f4a1aca6a3
|
|
@ -39,7 +39,6 @@ from workspace_tools.test_api import get_autodetected_MUTS_list
|
||||||
from workspace_tools.test_api import get_module_avail
|
from workspace_tools.test_api import get_module_avail
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Mbed:
|
class Mbed:
|
||||||
""" Base class for a host driven test
|
""" Base class for a host driven test
|
||||||
"""
|
"""
|
||||||
|
|
@ -147,7 +146,6 @@ class Mbed:
|
||||||
mut = muts_list[1]
|
mut = muts_list[1]
|
||||||
self.port = mut['port']
|
self.port = mut['port']
|
||||||
found = True
|
found = True
|
||||||
|
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
sleep(3)
|
sleep(3)
|
||||||
|
|
@ -252,9 +250,7 @@ class Mbed:
|
||||||
Please refer to host_test_plugins functionality
|
Please refer to host_test_plugins functionality
|
||||||
"""
|
"""
|
||||||
# Flush serials to get only input after reset
|
# Flush serials to get only input after reset
|
||||||
#self.flush()
|
self.flush()
|
||||||
self.serial.flushInput()
|
|
||||||
self.serial.flushOutput()
|
|
||||||
if self.options.forced_reset_type:
|
if self.options.forced_reset_type:
|
||||||
result = host_tests_plugins.call_plugin('ResetMethod', self.options.forced_reset_type, disk=self.disk)
|
result = host_tests_plugins.call_plugin('ResetMethod', self.options.forced_reset_type, disk=self.disk)
|
||||||
else:
|
else:
|
||||||
|
|
@ -289,7 +285,6 @@ class Mbed:
|
||||||
copy_method = 'shell'
|
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)
|
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;
|
return result;
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
|
|
|
||||||
|
|
@ -1707,6 +1707,7 @@ def get_autodetected_MUTS(mbeds_list, platform_name_filter=None):
|
||||||
index = 1
|
index = 1
|
||||||
for mut in mbeds_list:
|
for mut in mbeds_list:
|
||||||
# Filter the MUTS if a filter is specified
|
# Filter the MUTS if a filter is specified
|
||||||
|
|
||||||
if platform_name_filter and not mut['platform_name'] in platform_name_filter:
|
if platform_name_filter and not mut['platform_name'] in platform_name_filter:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue