Skip to content

Commit cc3934c

Browse files
fundakolnvlsianpu
authored andcommitted
tests: fix test - no reset after flash
Does not reset DUT twice after flashing. Signed-off-by: Lukasz Fundakowski <[email protected]>
1 parent 4fc5ead commit cc3934c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/subsys/kmu/pytest/test_kmu_key_revocation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ def test_if_revocation_of_last_remaining_key_is_not_allowed(
204204
- Flash device with the image signed with key1 and reset
205205
- Flash device with the image signed with key2 and reset
206206
- Flash device with the image signed with key3 and reset
207-
- Verified that Dut does not boot due to 3rd image is not signed with valid key
208-
- Flash device with image sidned with key2
207+
- Verified that Dut does not boot due to the 3rd image is not signed with valid key
208+
- Flash device with image signed with key2
209209
- Verify that Dut boots correctly and `Hello World` is printed to UART console
210210
"""
211211
sysbuild_config = Path(dut.device_config.build_dir) / "zephyr" / ".config"
@@ -275,7 +275,7 @@ def test_if_revocation_of_last_remaining_key_is_not_allowed(
275275
pytest.LineMatcher(lines).fnmatch_lines(LINES_FOR_REVOCED_KEYS)
276276

277277
logger.info("Flash DUT with the second image")
278-
west_flash(build_dir_2, dut.device_config.id)
278+
west_flash(build_dir_2, dut.device_config.id, extra_args="--no-reset")
279279
dut.clear_buffer()
280280
reset_board(dut.device_config.id)
281281
# Check if Dut boots correctly and `Hello World` is printed

0 commit comments

Comments
 (0)