Lines Matching full:dut
35 def clear_buffer(dut: DeviceAdapter) -> None:
37 if not dut.is_device_connected():
38 dut.connect()
40 dut.clear_buffer()
42 dut.disconnect()
45 def test_upgrade_with_confirm(dut: DeviceAdapter, shell: Shell, mcumgr: MCUmgr):
59 image_to_test = create_signed_image(dut.device_config.build_dir,
60 dut.device_config.app_build_dir, new_version)
63 dut.disconnect()
69 clear_buffer(dut)
72 dut.connect()
73 output = dut.readlines_until('Launching primary slot application')
80 dut.disconnect()
87 dut.connect()
88 output = dut.readlines_until('Launching primary slot application')
96 def test_upgrade_with_revert(dut: DeviceAdapter, shell: Shell, mcumgr: MCUmgr):
109 Path(dut.device_config.app_build_dir) / 'zephyr' / '.config',
114 image_to_test = create_signed_image(dut.device_config.build_dir,
115 dut.device_config.app_build_dir, new_version)
118 dut.disconnect()
124 clear_buffer(dut)
127 dut.connect()
128 output = dut.readlines_until('Launching primary slot application')
135 dut.disconnect()
141 dut.connect()
142 output = dut.readlines_until('Launching primary slot application')
157 def test_upgrade_signature(dut: DeviceAdapter, shell: Shell, mcumgr: MCUmgr, key_file):
171 Path(dut.device_config.build_dir) / 'mcuboot' / 'zephyr' / '.config',
177 image_to_test = Path(dut.device_config.build_dir) / 'test_invalid_key.bin'
180 image_to_test = Path(dut.device_config.build_dir) / 'test_no_key.bin'
184 build_dir=Path(dut.device_config.app_build_dir),
192 dut.disconnect()
200 clear_buffer(dut)
203 dut.connect()
204 output = dut.readlines_until('Launching primary slot application')