-
Notifications
You must be signed in to change notification settings - Fork 17
Fix remaining shellcheck warnings #44
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
Conversation
Fix warnings and errors in remaining files. Where errors are unavoidable add suitable exceptions, like in the platform.sh script. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
@@ -32,14 +32,14 @@ echo "$usb_output" | |||
|
|||
# Check if any USB devices were found | |||
if [ "$device_count" -eq 0 ]; then | |||
log_fail "$TESTNAME : Test Failed - No USB devices found." | |||
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res | |||
log_fail "$TESTNAME : Test Failed - No USB devices found." |
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.
Is log_fail supposed to change to log_error?
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.
The only change I made was removing the non-printable UTF character. I don't want to change the actual content of the script.
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.
Oh I see. I saw that log function names had changed and you wanted to fix that. Let me cross-check that on my end and fix if needed,
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.
if you can fix the issues you mentioned I can rebase this patch on top and avoid the changes altogether.
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.
I cross-checked the log function names in functestlib.sh and they are the same as written in my script. So we're good and additional changes are not required.
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.
Reviewed changes in Runner/../USBHost/run.sh
Fix warnings and errors in remaining files. Where errors are unavoidable add suitable exceptions, like in the platform.sh script.