Changing the DPB fixure to get breakout cfg table#1151
Changing the DPB fixure to get breakout cfg table#1151samaity wants to merge 1 commit intosonic-net:masterfrom
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.
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.
daall
left a comment
There was a problem hiding this comment.
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