Skip to content

Commit f4ea778

Browse files
jpbland1danielinux
authored andcommitted
add double fallback to update powerfail test since
NVM_FLASH_WRITEONCE can powerfail after FLAGS_FINAL and TESTING partition states have been set
1 parent bfe85d6 commit f4ea778

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/test-powerfail-simulator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
182182
- name: Build wolfboot.elf
183183
run: |
184-
make && make test-sim-internal-flash-with-delta-update
184+
make clean && make test-sim-internal-flash-with-delta-update
185185
186186
- name: Run sunny day update test (DELTA)
187187
run: |

tools/scripts/sim-update-powerfail-resume.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ fi
1515
V=`./wolfboot.elf powerfail 3f000 get_version` 2>/dev/null
1616
if [ "x$V" != "x2" ]; then
1717
V=`./wolfboot.elf get_version 2>/dev/null`
18+
# if we failed on the final boot state write we need to double fallback
19+
if [ "x$V" == "x1" ]; then
20+
V=`./wolfboot.elf get_version 2>/dev/null`
21+
fi
1822
fi
1923

2024
if [ "x$V" != "x2" ]; then

0 commit comments

Comments
 (0)