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

[pfcwd] Fix the return code in invalid case #1691

Merged
merged 2 commits into from
Jun 25, 2021

Conversation

neethajohn
Copy link
Contributor

Fixes #1690

What I did

Set the correct return code when pfcwd command is specified with invalid options

How to verify it

Modified the unit test to check for the correct return code and ran them and they passed

Signed-off-by: Neetha John <nejo@microsoft.com>
Signed-off-by: Neetha John <nejo@microsoft.com>
@neethajohn
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@neethajohn
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@neethajohn neethajohn merged commit c5d00ae into sonic-net:master Jun 25, 2021
@neethajohn neethajohn deleted the pfcwd_fix branch June 25, 2021 00:09
@qiluo-msft
Copy link
Contributor

@neethajohn This PR could not be cleanly cherry-pick to 202012. Please submit another PR.

liat-grozovik pushed a commit that referenced this pull request Jun 30, 2021
Backport #1691
- What I did
Set the correct return code when pfcwd command is specified with invalid options

Signed-off-by: Neetha John <nejo@microsoft.com>
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-utilities that referenced this pull request Aug 10, 2021
Signed-off-by: Neetha John <nejo@microsoft.com>

Fixes sonic-net#1690

What I did
Set the correct return code when pfcwd command is specified with invalid options

How to verify it
Modified the unit test to check for the correct return code and ran them and they passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PFCWD] The incorrect cli command doesn't return failed exit code 1
5 participants