Skip to content

Commit 4e0f86b

Browse files
committed
The Audio_Playback testcase defines a cleanup() helper that is invoked
indirectly via trap on EXIT/INT/TERM. ShellCheck reports SC2317 on the pkill call because it cannot see the trap-based invocation path, but the function is valid and part of the existing cleanup flow. Add a targeted SC2317 suppression on cleanup() without changing runtime behavior. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
1 parent 8a73568 commit 4e0f86b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Runner/suites/Multimedia/GSTreamer/Audio/Audio_Playback

Runner/suites/Multimedia/GSTreamer/Audio/Audio_Playback/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ if [ -n "$channels" ]; then
9696
channelsUser="1"
9797
fi
9898

99+
# shellcheck disable=SC2317 # Invoked indirectly via trap.
99100
cleanup() {
100101
pkill -x gst-launch-1.0 >/dev/null 2>&1 || true
101102
}

0 commit comments

Comments
 (0)