Skip to content

Commit 3fcfcbc

Browse files
committed
shellcheck: silence trap-only cleanup warning Tiotest
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 c11ee20 commit 3fcfcbc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Runner/suites/Performance/Tiotest

Runner/suites/Performance/Tiotest/run.sh

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

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

0 commit comments

Comments
 (0)