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

[vstest]: fix test_port_an_warm.py test #779

Merged
merged 1 commit into from
Feb 1, 2019
Merged

Conversation

lguohan
Copy link
Contributor

@lguohan lguohan commented Feb 1, 2019

the test should set the speed and autoneg in config db instead
of application db. As if the speed in config db is not changed,
it will override the value in app db after warm reboot

Signed-off-by: Guohan Lu [email protected]

What I did

Why I did it

How I verified it

Details if related

the test should set the speed and autoneg in config db instead
of application db. As if the speed in config db is not changed,
it will override the value in app db after warm reboot

Signed-off-by: Guohan Lu <[email protected]>
@lguohan
Copy link
Contributor Author

lguohan commented Feb 1, 2019

@jipanyang to review

Copy link
Contributor

@jipanyang jipanyang left a comment

Choose a reason for hiding this comment

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

Passed my local test too. thanks.

jipan@jipan_sonic_vm_150:~/vs/sonic-buildimage/src/sonic-swss/tests$ sudo pytest -v --dvsname=vs  test_port_an_warm.py
============================================================================== test session starts ==============================================================================
platform linux2 -- Python 2.7.15rc1, pytest-3.3.0, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python
cachedir: .cache
rootdir: /home/jipan/vs/sonic-buildimage/src/sonic-swss/tests, inifile:
collected 1 item                                                                                                                                                                

test_port_an_warm.py::test_PortAutoNeg_warm PASSED                                                                                                                        [100%]

=========================================================================== 1 passed in 42.18 seconds ===========================================================================
jipan@jipan_sonic_vm_150:~/vs/sonic-buildimage/src/sonic-swss/tests$ 

@lguohan
Copy link
Contributor Author

lguohan commented Feb 1, 2019

test_speed.py fix in #780

@lguohan lguohan merged commit cef4bd0 into sonic-net:master Feb 1, 2019
@yxieca
Copy link
Contributor

yxieca commented Feb 5, 2019

Made to 201811 branch on 2/4/2019

yxieca pushed a commit that referenced this pull request Feb 5, 2019
the test should set the speed and autoneg in config db instead
of application db. As if the speed in config db is not changed,
it will override the value in app db after warm reboot

Signed-off-by: Guohan Lu <[email protected]>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
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