Skip to content

Commit fcef505

Browse files
committed
shellcheck: silence trap-only cleanup warning in BT_SCAN_PAIR
Add a targeted SC2317 annotation for the trap-invoked cleanup function in BT_SCAN_PAIR/run.sh without changing runtime behavior. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
1 parent 36785cc commit fcef505

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Runner/suites/Connectivity/Bluetooth/BT_SCAN_PAIR

Runner/suites/Connectivity/Bluetooth/BT_SCAN_PAIR/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
32
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
43
# SPDX-License-Identifier: BSD-3-Clause
54
# Robustly find and source init_env
@@ -107,6 +106,7 @@ check_dependencies bluetoothctl rfkill expect hciconfig || {
107106
exit 0
108107
}
109108

109+
# shellcheck disable=SC2317 # cleanup is invoked via trap
110110
cleanup_bt_test() {
111111
# Cleanup only the primary MAC we worked with (if any)
112112
[ -n "$BT_MAC" ] && bt_cleanup_paired_device "$BT_MAC"

0 commit comments

Comments
 (0)