Skip to content

Skip platform testcases if transceiver is DAC#5010

Merged
prgeor merged 4 commits intosonic-net:masterfrom
mannytaheri:dac_sfp
Mar 14, 2022
Merged

Skip platform testcases if transceiver is DAC#5010
prgeor merged 4 commits intosonic-net:masterfrom
mannytaheri:dac_sfp

Conversation

@mannytaheri
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
Added code snippet to skip certain platform_tests if the transceiver is a DAC
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?

Make the platform test cases more robust

How did you do it?

  • Added method to check for transceiver cable type
  • Added code snippet to testcase to skip the test if transceiver type is DAC

How did you verify/test it?

Ran the regression tests

Any platform specific information?

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

Documentation

sujinmkang
sujinmkang previously approved these changes Jan 27, 2022
@sujinmkang sujinmkang requested a review from prgeor January 27, 2022 02:06
Copy link
Copy Markdown
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

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

please reuse or fix is_xcvr_optical()

@prgeor prgeor self-assigned this Jan 27, 2022
@prgeor
Copy link
Copy Markdown
Contributor

prgeor commented Feb 2, 2022

i think this is already addressed by PR #4749

Copy link
Copy Markdown
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

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

changes look good, except for the log message which is incorrect.

@mannytaheri
Copy link
Copy Markdown
Contributor Author

Addressed all the comments

Copy link
Copy Markdown
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@prgeor prgeor merged commit 10debf5 into sonic-net:master Mar 14, 2022
@prgeor
Copy link
Copy Markdown
Contributor

prgeor commented Jul 26, 2022

@yxieca @lizhuhuams please cherry-pick this fix to 202012

yejianquan pushed a commit that referenced this pull request Jul 26, 2022
* Added code to skip some testcases if transceiver is a DAC

* modified test_sfp.py to use is_xcvr_optical instead of is_xcvr_dac

* Addressed all the comments

* Addressed more comments
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.

4 participants