-
Notifications
You must be signed in to change notification settings - Fork 48
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
test-case: add quotes to function arguments for func_export_pipeline #475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree with the change except it is way too big. For instance is possible some function calls rely sometimes on white space inside the argument, which is bad (it should use a bash array instead) but working and this would break it.
Please resubmit with only the changes you need right now and with a separate commit per function.
79583e8
to
dbd67f8
Compare
@marc-hb Updated, I only need the change for |
Looks good except you kept the older and now misleading commit subject. |
dbd67f8
to
ffe5912
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No functional change, only add quotes.
It is a big functional change when the $tplg
argument is empty or not defined.
ffe5912
to
bc2b0f4
Compare
If a shell function takes a variable as its argument, and the variable is empty, then the argument will degrade to nothing in the function. This patch adds quotes to function arguments for func_export_pipeline to avoid argument degrading. Signed-off-by: Amery Song <[email protected]>
Travis builds delayed everywhere because of the required migration to travis.com https://travis-ci.community/t/builds-hang-in-queued-state/10250 shellcheck would not have been very helpful in this PR because of the number of files changed. I reviewed every line carefully. The only failure in https://sof-ci.01.org/softestpr/PR475/build346/devicetest/ is a RTC wakeup failure on just one system, this can't be related. Merging this to unblock #430 |
If a shell function takes a variable as its argument,
and the variable is empty, then the argument will
degrade to nothing in the function.
This patch adds quotes to function arguments to avoid
argument degrading.
Signed-off-by: Amery Song [email protected]