Skip to content

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

Merged
neethajohn merged 2 commits intosonic-net:masterfrom
neethajohn:pfcwd_fix
Jun 25, 2021
Merged

[pfcwd] Fix the return code in invalid case#1691
neethajohn merged 2 commits intosonic-net:masterfrom
neethajohn:pfcwd_fix

Conversation

@neethajohn
Copy link
Copy Markdown
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

@neethajohn
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@neethajohn
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

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
Copy Markdown
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 <[email protected]>
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-utilities that referenced this pull request Aug 10, 2021
Signed-off-by: Neetha John <[email protected]>

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