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

[DPB]Fix return code in case of failure #3389

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

dgsudharsan
Copy link
Collaborator

What I did

Fix return code when DPB command fails. Return of 0 indicates success which might be a problem to detect failures using automation

How I did it

Updated return code to 1

How to verify it

Basic manual testing

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@dgsudharsan
Copy link
Collaborator Author

@bingwang-ms Can you please review this? This is similar to #3357

@bingwang-ms bingwang-ms merged commit 414cf3b into sonic-net:master Jul 1, 2024
7 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Jul 1, 2024
* [DPB]Fix return code in case of failure

* Updating UT
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3392

mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Jul 1, 2024
* [DPB]Fix return code in case of failure

* Updating UT
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #3393

mssonicbld pushed a commit that referenced this pull request Jul 1, 2024
* [DPB]Fix return code in case of failure

* Updating UT
@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3392

6 similar comments
@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3392

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3392

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3392

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3392

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3392

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3392

mssonicbld pushed a commit that referenced this pull request Jul 12, 2024
* [DPB]Fix return code in case of failure

* Updating UT
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.

3 participants