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

check-kmod-load-unload-after-playback.sh: fix source reference and quote issues. #1042

Merged

Conversation

greg-intel
Copy link
Contributor

@greg-intel greg-intel commented May 25, 2023

Fixes per ticket #729

Six issues to zero.

Fixed the source reference to match that of other repos. Fixed a single quote issue (a single quote block contained a variable).

Signed off by Greg Galloway [email protected]

…oting

Six issues to zero.

Fixed the source reference to match that of other repos.  Fixed a single quote issue (a single quote block contained a variable).
@greg-intel greg-intel requested a review from a team as a code owner May 25, 2023 22:51
marc-hb
marc-hb previously approved these changes May 25, 2023
@@ -85,7 +86,7 @@ do
dlogi "platform doesn't support runtime pm, skip waiting" && break
[[ $(sof-dump-status.py --dsp_status 0) == "suspended" ]] && break
sleep 1
if [ $i -eq 15 ]; then
if [ "$i" -eq 15 ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please add one more commit with this?

Suggested change
if [ "$i" -eq 15 ]; then
if [ "$i" -ge 15 ]; then

Much safer in case someone fails to update both duplicates at the same time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why no sign-off in either commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oversight on my part, sorry.

case_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)

OPT_NAME['t']='tplg' OPT_DESC['t']='tplg file, default value is env TPLG: $TPLG'
OPT_NAME['t']='tplg' OPT_DESC['t']="tplg file, default value is env TPLG: $TPLG"
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a useful bug fix!

Changed -eq 15 to be -ge 15 per Marc.  

This will catch situations where someone fails to update both duplicates at the same time.
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.

Changed -eq 15 to be -ge 15 per Marc.

This sounds a bit like "just because X asked" which is definitely not enough of a reason to do a code change!

Now if you want to credit someone else for an incredibly good idea then by all means do it but that's not really how this commit message looks right now.

Also, this particular change is very far from ground-breaking.

Never mind, does not matter. Don't fix it.

@greg-intel
Copy link
Contributor Author

Changed -eq 15 to be -ge 15 per Marc.

This sounds a bit like "just because X asked" which is definitely not enough of a reason to do a code change!

Now if you want to credit someone else for an incredibly good idea then by all means do it but that's not really how this commit message looks right now.

Also, this particular change is very far from ground-breaking.

Never mind, does not matter. Don't fix it.

Sorry, that wasn't my intent. I was calling it out because you're much more familiar with the test suite and what's being tested to know what situations were covered. I had originally tried to be "too smart" and over-explain, but then I realized that might get me in trouble (and that I was probably wrong on some counts) so I simplified my message. I felt this message lent more credibility to the change.

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 5, 2023

The rare test failures happened in other tests not modified by this PR. Merging.

@marc-hb marc-hb merged commit 0526724 into main Jun 5, 2023
@marc-hb marc-hb deleted the check-kmod-load-unload-after-playback-shellcheck-fixes branch June 5, 2023 19:53
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.

3 participants