File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export CONSOLE_DEV
5555export BOARD
5656
5757if [ -z " $TEST_SET " ]; then
58- TEST_SET=" :e2e -flash"
58+ TEST_SET=" :recovery -flash"
5959fi
6060
6161if [ -z " $KEYFILE " ]; then
@@ -105,3 +105,19 @@ if [[ "$TEST_SET" == *"e2e-flash"* ]]; then
105105 west flash -d $ZEPHYR_BASE /build-dmc --domain dmc
106106 rm -rf $ZEPHYR_BASE /build-dmc
107107fi
108+
109+ if [[ " $TEST_SET " == * " recovery-flash" * ]]; then
110+ # Run a recovery flash test
111+ $ZEPHYR_BASE /scripts/twister -i -p $SMC_BOARD \
112+ --tag recovery -T $TT_Z_P_ROOT /app \
113+ --west-flash=" --force,--allow-major-downgrades" \
114+ --west-runner tt_flash \
115+ --device-testing -c \
116+ --device-flash-timeout 240 \
117+ --device-serial-pty " $TT_Z_P_ROOT /scripts/smc_console.py -d $CONSOLE_DEV -p" \
118+ --failure-script " $TT_Z_P_ROOT /scripts/smc_test_recovery.py --asic-id $ASIC_ID " \
119+ --flash-before \
120+ --outdir $ZEPHYR_BASE /twister-recovery-flash \
121+ --extra-args=SB_CONFIG_BOOT_SIGNATURE_KEY_FILE=\" $KEYFILE \" \
122+ $@
123+ fi
You can’t perform that action at this time.
0 commit comments