From 34ee973ee0089eed22df6cfd3a4a3a5780a098a9 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Wed, 14 Jan 2026 14:45:31 +0800 Subject: [PATCH] scripts: fix warning in test util CI reports: In scripts/test-util.sh line 216: cleanup() { ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). The shellcheck can't trace calling in trap, so we need add hint to make it happy. Signed-off-by: Yi Wang --- scripts/test-util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test-util.sh b/scripts/test-util.sh index 04d79371b..5c49dcae6 100644 --- a/scripts/test-util.sh +++ b/scripts/test-util.sh @@ -212,7 +212,7 @@ mount_and_exec() { local COMMAND_STATUS=0 # Cleanup function to unmount and detach loop device - # shellcheck disable=SC2317 + # shellcheck disable=SC2317,SC2329 cleanup() { if [ -n "$MOUNT_DIR" ]; then echo "Cleanup: Unmounting $MOUNT_DIR..." >&2