-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add quotes to tr constructs to fix command syntax #20464
Add quotes to tr constructs to fix command syntax #20464
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.
@prsunny can you also review
@spilkey-cisco Why is this failing only on LCs? Is there any change in 'tr' version on LCs? |
I'm not that familiar with these test cases, so it's not totally clear to me why it's not always seen everywhere. Cisco only saw this on some LCs, and I think only in TSC. I don't see why the I did find this about a possible cause depending on what locale is set for the OS ( Another possible explanation can be the existence of single-letter files which would require the constructs be in quotes: https://stackoverflow.com/questions/55355552/linux-tr-command-failing-misaligned-construct Adding quotes around the constructs has no negative effect and is always recommended. Most usage in SONiC already has quotes for these constructs, these are the only ones that were missing it, so all are being fixed. |
/azpw
Thanks |
/azpw run |
/azpw run Azure.sonic-buildimage |
@kperumalbfn any idea why one build is failing, but all others succeeded? I'm unable to view the logs, but these changes shouldn't be causing a build failure. |
@spilkey-cisco could you rebase your branch? |
@prgeor Can u merge this. All checks have passed. |
MSFT Team: Can you please merge this? |
@kevinskwang @yxieca can you merge this PR. I don't have permission to merge. @bmridul FYI |
@kperumalbfn , Pls include this for 202405. |
Cherry-pick PR to 202405: #20976 |
Why I did it
bgp/test_startup_tsa_tsb_service.py::test_tsa_tsb_service_with_dut_abnormal_reboot
is failing on LC duetr
errors in TSC.Work item tracking
How I did it
Add quotes around
tr
upper and lower constructs everywhere they are missing sotr
does not fail.How to verify it
Run failing script to verify issue is not seen:
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Add quotes to tr constructs to fix command syntax
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)
🦫