Skip to content

shellcheck: fix cleanup, quoting, and dead trailing logs in CPU_affinity and Freq_Scaling#361

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

shellcheck: fix cleanup, quoting, and dead trailing logs in CPU_affinity and Freq_Scaling#361
vnarapar merged 2 commits intoqualcomm-linux:mainfrom
smuppand:sched_dcvs

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

@smuppand smuppand commented Mar 22, 2026

This PR fixes a small set of ShellCheck findings in two kernel scheduler/DCVS test scripts without changing their intended runtime behavior.

What changed

  • Runner/suites/Kernel/Scheduler/CPU_affinity/run.sh

    • add exit-trap cleanup for the background CPU-bound task
    • quote TASK_PID in taskset/chrt related calls
    • remove unreachable trailing lines after the final PASS/FAIL exit path
  • Runner/suites/Kernel/DCVS/Freq_Scaling/run.sh

    • quote CPUFREQ_PATH when reading cpufreq sysfs files
    • remove the unreachable trailing completion log after the final PASS/FAIL exit path

Update Runner/suites/Kernel/Scheduler/CPU_affinity/run.sh to:
- clean up the background task through an exit trap
- quote TASK_PID in taskset and chrt calls
- remove unreachable trailing lines after the final PASS/FAIL exit path

This preserves the intended task cleanup behavior while addressing
ShellCheck SC2086 and SC2317 findings.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Update Runner/suites/Kernel/DCVS/Freq_Scaling/run.sh to:
- quote CPUFREQ_PATH when reading cpufreq sysfs files
- remove the unreachable trailing completion log after the final
  PASS/FAIL exit path

This is a mechanical ShellCheck cleanup and does not change the intended
DCVS frequency scaling test flow.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand smuppand requested a review from vnarapar March 22, 2026 13:12
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 b4c8b39 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