On 2026-10-29T16:23:07+11:00, Frieder Schrempf <[email protected]> wrote: > test: boot: Restore the bootdev order if the RAUC test fails > > bootflow_rauc() points std->bootdev_order at a static array and only > restores the original order at its end. If an assertion fails, the > test returns early with the static array still in place, and removing > bootstd then hands it to free(). This trips the dlmalloc checks and > aborts sandbox, so the failure of the flat-tree run is never reported > and no further test runs. > > Move the setup into bootflow_rauc_run(), which restores the order > after running the checks, whether they pass or not. > > Fixes: 36add050eea4 ("test: boot: Add test for bootmeth_rauc") > Assisted-by: LLM > Signed-off-by: Frieder Schrempf <[email protected]> > > test/boot/bootflow.c | 48 +++++++++++++++++++++++++++++++++++------------- > 1 file changed, 35 insertions(+), 13 deletions(-)
Reviewed-by: Simon Glass <[email protected]>
