Skip to content

Commit 7d201ef

Browse files
committed
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 <foxywang@tencent.com>
1 parent c19ee03 commit 7d201ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/test-util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ mount_and_exec() {
212212
local COMMAND_STATUS=0
213213

214214
# Cleanup function to unmount and detach loop device
215-
# shellcheck disable=SC2317
215+
# shellcheck disable=SC2317,SC2329
216216
cleanup() {
217217
if [ -n "$MOUNT_DIR" ]; then
218218
echo "Cleanup: Unmounting $MOUNT_DIR..." >&2

0 commit comments

Comments
 (0)