Skip to content

Commit 591697e

Browse files
committed
scripts: ci: add recovery-flash test to e2e test script
Adds twister command to call recovery-flash test in e2e test script. Signed-off-by: Alexander Lay <alexanderlay@tenstorrent.com>
1 parent 31a5866 commit 591697e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

scripts/ci/run-e2e.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export CONSOLE_DEV
5555
export BOARD
5656

5757
if [ -z "$TEST_SET" ]; then
58-
TEST_SET=":e2e-flash"
58+
TEST_SET=":recovery-flash"
5959
fi
6060

6161
if [ -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
107107
fi
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

0 commit comments

Comments
 (0)