Skip to content

Commit f2ca4e0

Browse files
rwalton-armPatater
authored andcommitted
Pass --format argument to pyocd plugins
The --format argument added in cd27fcc wasn't being passed to the pyocd plugin objects. So, when we tried to look it up in the "kwargs" dictionary it would fail.
1 parent f8306bc commit f2ca4e0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/mbed_os_tools/test/host_tests_runner/mbed_base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ def copy_image_raw(self, image_path=None, disk=None, copy_method=None, port=None
221221
serial=port,
222222
destination_disk=disk,
223223
target_id=self.target_id,
224-
pooling_timeout=self.polling_timeout)
224+
pooling_timeout=self.polling_timeout,
225+
format=self.options.format
226+
)
225227
return result
226228

227229
def hw_reset(self):
@@ -234,7 +236,8 @@ def hw_reset(self):
234236
result = ht_plugins.call_plugin('ResetMethod',
235237
'power_cycle',
236238
target_id=self.target_id,
237-
device_info=device_info)
239+
device_info=device_info,
240+
format=self.options.format)
238241
if result:
239242
self.port = device_info['serial_port']
240243
self.disk = device_info['mount_point']

0 commit comments

Comments
 (0)