Skip to content

Commit c11ee20

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Runner/suites/Performance/Sysbench_Performance

Runner/suites/Performance/Sysbench_Performance/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ if [ -n "$BASELINE_FILE" ] && [ ! -f "$BASELINE_FILE" ]; then
227227
BASELINE_FILE=""
228228
fi
229229

230+
# shellcheck disable=SC2317 # cleanup is invoked via trap
230231
cleanup() {
231232
restore_governor 2>/dev/null || true
232233
}

0 commit comments

Comments
 (0)