Skip to content

Commit f1ad8ac

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Runner/suites/Performance/Boot_Systemd_Validate

Runner/suites/Performance/Boot_Systemd_Validate/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ check_dependencies systemctl systemd-analyze uname sed awk grep find sort || {
257257

258258
# --- ensure CPU governors restored on exit (only if we changed it) ---
259259
GOV_CHANGED=0
260+
# shellcheck disable=SC2317 # cleanup is invoked via trap
260261
cleanup() {
261262
if [ "$GOV_CHANGED" -eq 1 ] 2>/dev/null; then
262263
restore_governor

0 commit comments

Comments
 (0)