Skip to content

shellcheck: reduce false positives in performance scripts #354

Merged
vnarapar merged 5 commits intoqualcomm-linux:mainfrom
smuppand:performance
Mar 22, 2026
Merged

shellcheck: reduce false positives in performance scripts #354
vnarapar merged 5 commits intoqualcomm-linux:mainfrom
smuppand:performance

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

This PR address a small batch of ShellCheck warnings in performance scripts with no runtime behavior changes.

Changes included in this PR:

  • remove shadowed duplicate helper definitions from Runner/utils/lib_performance.sh
  • add targeted SC2317 annotations for trap-only cleanup functions in:
    • Boot_Systemd_Validate
    • Geekbench
    • Sysbench_Performance
    • Tiotest

This is a lint-only cleanup to reduce CI noise from newer ShellCheck versions.

Remove earlier duplicate definitions of perf_is_number,
perf_run_cmd_tee, and perf_sysbench_csv_append from
Runner/utils/lib_performance.sh.

These earlier copies were shadowed by later definitions in the same
file, so this cleanup does not change runtime behavior after the library
is sourced. The change only removes dead duplicate code and addresses
newer ShellCheck SC2317 warnings.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
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>
Add a targeted SC2317 annotation for the trap-invoked cleanup function in
Runner/suites/Performance/Geekbench/run.sh without changing runtime
behavior.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
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>
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>
@smuppand smuppand requested review from abbajaj806 and vnarapar March 20, 2026 14:58
Copy link
Copy Markdown
Contributor

@vnarapar vnarapar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vnarapar vnarapar merged commit 4aa9826 into qualcomm-linux:main Mar 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants