Skip to content

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

mwasilew
Copy link
Contributor

Fix warnings and errors in remaining files. Where errors are unavoidable add suitable exceptions, like in the platform.sh script.

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."
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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,

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

@achauras-qcom achauras-qcom left a 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

@smuppand smuppand merged commit a932bc1 into qualcomm-linux:main May 22, 2025
3 checks passed
@mwasilew mwasilew mentioned this pull request May 22, 2025
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