Skip to content

[platform/sfp] Add test cases for SFP error status#3648

Merged
liat-grozovik merged 4 commits intosonic-net:masterfrom
stephenxs:sfp-error-status-github
Jun 30, 2021
Merged

[platform/sfp] Add test cases for SFP error status#3648
liat-grozovik merged 4 commits intosonic-net:masterfrom
stephenxs:sfp-error-status-github

Conversation

@stephenxs
Copy link
Contributor

Description of PR

Summary:
Add test cases for SFP error status

Signed-off-by: Stephen Sun stephens@nvidia.com

Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

Add test cases for SFP error status

  • Add test cases for sfputil show error-status
  • Add platform test for SFP.get_error_description()

How did you do it?

How did you verify/test it?

Run regression test.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

stephenxs added 2 commits June 8, 2021 10:48
- Add test cases for sfputil show error-status
- Add platform test for SFP.get_error_description()

Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Remove unused variable
- Simplify the fixture of the command

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs
Copy link
Contributor Author

@jleveque can you review this PR when you have time? thanks.

Signed-off-by: Stephen Sun <stephens@nvidia.com>
Copy link
Collaborator

@liat-grozovik liat-grozovik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as commented

Copy link
Collaborator

@liat-grozovik liat-grozovik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as commented

- Skip the test if error status isn't supported
- Skip the test on versions 202012, 201911, 201811
- Add comments

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@liat-grozovik liat-grozovik merged commit 8305c26 into sonic-net:master Jun 30, 2021
@stephenxs stephenxs deleted the sfp-error-status-github branch June 30, 2021 10:19
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
Add test cases for SFP error status
- Add test cases for sfputil show error-status
- Add platform test for SFP.get_error_description()

Signed-off-by: Stephen Sun <stephens@nvidia.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (sonic-net#22629)

src/sonic-swss

* 43529026 - (HEAD -> 202405, origin/202405) [202405] Setting default nexthop weight to 1 in `fpmsyncd` (sonic-net#3648) (7 hours
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