From 12797820249870b31c3a80f52bcbdb96dae277b5 Mon Sep 17 00:00:00 2001 From: Alexandre Fiset Date: Thu, 2 Jul 2026 08:31:08 +0200 Subject: [PATCH] ci: cram: freedom: swupdate: cleanup /tmp after the dry-run tests The .swu firmware image (~80MB) and temporary PEM keys generated during the wrong-key test were never removed from DUT /tmp, leaving the partition nearly full for the tests that run afterwards. Delete the .swu image and the generated PEM files at the end of the test. References: PCF-2469, PPW-2134 Signed-off-by: Alexandre Fiset --- .gitlab/tests/cram/wnc-freedom/211-swupdate.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab/tests/cram/wnc-freedom/211-swupdate.t b/.gitlab/tests/cram/wnc-freedom/211-swupdate.t index 170e8a5183..a5e3106119 100644 --- a/.gitlab/tests/cram/wnc-freedom/211-swupdate.t +++ b/.gitlab/tests/cram/wnc-freedom/211-swupdate.t @@ -25,3 +25,7 @@ Run SWUpdate in dry-run mode using a wrong public key: $ R "openssl genrsa -out /tmp/private.pem 2048; openssl rsa -in /tmp/private.pem -pubout -out /tmp/public.pem > /dev/null 2>&1" $ R "swupdate -n -k /tmp/public.pem -i /tmp/prplos-ipq95xx-generic-prpl_freedom-image.swu -v -H freedom:1.0.0 -e active,full 2>&1 | grep -i 'endupdate .* SWUpdate \*failed\* !'" [ERROR] : SWUPDATE failed [0] ERROR install_from_file.c : endupdate : 55 : SWUpdate *failed* ! + +Cleanup temporary files: + + $ R "rm -f /tmp/prplos-ipq95xx-generic-prpl_freedom-image.swu /tmp/private.pem /tmp/public.pem"