Skip to content

shellcheck: fix trap-only cleanup false positives in kernel stress and userdata tests #360

Merged
vnarapar merged 2 commits intoqualcomm-linux:mainfrom
smuppand:UDE
Mar 22, 2026
Merged

shellcheck: fix trap-only cleanup false positives in kernel stress and userdata tests #360
vnarapar merged 2 commits intoqualcomm-linux:mainfrom
smuppand:UDE

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

This PR fixes a small set of ShellCheck findings in two kernel test
scripts without changing runtime behavior.

What changed

  • added a targeted SC2317 annotation for the trap-invoked cleanup
    function in:
    • Runner/suites/Kernel/Baseport/UserDataEncryption/run.sh
  • updated Runner/suites/Kernel/Stress/Stressapptest/run.sh to:
    • add a targeted SC2317 annotation for the trap-invoked cleanup
      function
    • replace the CPU_COUNT calculation with a ShellCheck-clean form that
      preserves the intended counting of space-separated ONLINE_CPUS

Add a targeted SC2317 annotation for the trap-invoked cleanup function in
UserDataEncryption/run.sh without changing runtime behavior.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
…pptest

Update Runner/suites/Kernel/Stress/Stressapptest/run.sh to:
- replace the CPU_COUNT calculation with a shellcheck-clean form that
  preserves the intended counting of space-separated ONLINE_CPUS
- add a targeted SC2317 annotation for the cleanup function invoked only
  through trap

This is a mechanical cleanup and does not change the intended stressapptest
flow.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
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 718ae18 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