Skip to content

Commit fd06915

Browse files
petejohanson-adiYasin Ustuner
authored andcommitted
tests: subsys: secure_storage: Erase targets when flashing the test
The PSA ITS test requires previous test run data to be removed before it can be successfully run again, so tweak the app to include erase to the board runner args for common board runners. Signed-off-by: Pete Johanson <[email protected]>
1 parent fb7a74e commit fd06915

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/subsys/secure_storage/psa/its/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
cmake_minimum_required(VERSION 3.20.0)
2+
3+
macro(app_set_runner_args)
4+
board_runner_args(dfu-util "--dfuse-modifiers=force:mass-erase")
5+
board_runner_args(pyocd "--erase")
6+
board_runner_args(jlink "--erase")
7+
board_runner_args(nrfjprog "--erase")
8+
board_runner_args(openocd "--erase")
9+
endmacro()
10+
211
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
312
project(app)
413

0 commit comments

Comments
 (0)