mirror of https://github.com/ARMmbed/mbed-os.git
Host test plugins: moved serial port flashing just before plugin reset call
parent
7591cf5caf
commit
efb46ca7de
|
@ -175,12 +175,12 @@ class Mbed:
|
|||
""" Calls proper reset plugin to do the job.
|
||||
Please refer to host_test_plugins functionality
|
||||
"""
|
||||
# Flush serials to get only input after reset
|
||||
self.flush()
|
||||
if self.options.forced_reset_type:
|
||||
host_tests_plugins.call_plugin('ResetMethod', self.options.forced_reset_type, disk=self.disk)
|
||||
else:
|
||||
host_tests_plugins.call_plugin('ResetMethod', 'default', serial=self.serial)
|
||||
# Flush serials to get only input after reset
|
||||
self.flush()
|
||||
# Give time to wait for the image loading
|
||||
reset_tout_s = self.options.forced_reset_timeout if self.options.forced_reset_timeout is not None else self.DEFAULT_RESET_TOUT
|
||||
self.reset_timeout(reset_tout_s)
|
||||
|
|
Loading…
Reference in New Issue