Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simultaneous playback capture shellcheck fixes #1050

Conversation

greg-intel
Copy link
Contributor

Fix shellcheck errors per #729

Corrected a source reference. Fixed various quoting issues. Corrected exit codes and updated syntax.

Signed-off-by: Greg Galloway [email protected]

The previous source reference for lib.sh triggers shellcheck errors.  This clears them up.

Signed off by Greg Galloway <[email protected]>
Rewrote exit code checks.
Rewrote antiquated and deprecated syntax and commands.
(Removed expr and braces)

Signed-off-by: Greg Galloway <[email protected]>
Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

Code changes look good, thanks!

Nit: this commit message seems inaccurate "The previous source reference for lib.sh triggers shellcheck errors."

@greg-intel greg-intel marked this pull request as ready for review June 6, 2023 15:36
@greg-intel greg-intel requested a review from a team as a code owner June 6, 2023 15:36
@greg-intel
Copy link
Contributor Author

The previous source reference for lib.sh triggers shellcheck errors.

I do like this phrasing much more. If I adjust the source reference in future files, I'll call this out properly.

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 6, 2023

Nit: this commit message seems inaccurate "The previous source reference for lib.sh triggers shellcheck errors."

I thought this was referring to the addition of the meta # shellcheck source= comment.

Now I realize this is probably just a confusing way to say "add missing quotes"?

@@ -74,38 +75,38 @@ do
setup_kernel_check_point
dlogi "===== Testing: (Loop: $i/$loop_cnt) ====="
# following sof-tplgreader, split 'both' pipelines into separate playback & capture pipelines, with playback occurring first
for order in $(seq 0 2 $(expr $PIPELINE_COUNT - 1))
for order in $(seq 0 2 $(( "$PIPELINE_COUNT" - 1)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
for order in $(seq 0 2 $(( "$PIPELINE_COUNT" - 1)))
for order in $(seq 0 2 $(( PIPELINE_COUNT - 1)))

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 9, 2023

All tests passed, merging

@marc-hb marc-hb merged commit d929d91 into thesofproject:main Jun 9, 2023
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