-
Notifications
You must be signed in to change notification settings - Fork 543
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
Changing the DPB fixure to get breakout cfg table #1151
Conversation
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
retest this please |
|
||
@pytest.yield_fixture(scope="module") | ||
def dpb_setup_fixture(dvs): | ||
create_dpb_config_file(dvs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newer pytest versions don't allow you to directly call fixtures like this. I would recommend converting create_dpb_config_file
and remove...
into normal methods if they're not used anywhere else, otherwise you might want to define a helper method that can be used in both these fixtures and the dpb_setup_fixture
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @samaity @zhenggen-xu it looks like this was added already in #1112. Can you confirm?
My comment about calling the fixture directly still applies in this case. You can fix the merge conflicts in this PR and address the comment here, or it might be easier to close this PR and open a new PR against the latest master. Up to you, just let me know what you end up choosing! :)
sonic-net#1151) To ensure a smooth transition once we stop installing the dependencies explicitly in the SONiC image. We can upgrade dependencies selectively in the future. Also had to replace single-quotes with double-quotes in expected Click error messages, as it seems the Click package installed via pip uses double quotes, whereas the package installed via Debian used single-quotes.
Signed-off-by: Sangita Maity sangitamaity0211@gmail.com
What I did
Generating "BREAKOUT_CFG" table in config DB for running DPB test case.
Why I did it
This PR is needed for DPB TEST PR
How to verify it
Verified using VS test case mentioned here