Skip to content

Commit

Permalink
[vstest]: fix test_port_an_warm.py test (#779)
Browse files Browse the repository at this point in the history
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 <gulv@microsoft.com>
  • Loading branch information
lguohan committed Feb 1, 2019
1 parent 9f20eda commit cef4bd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_port_an_warm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def test_PortAutoNeg_warm(dvs, testlog):
ctbl = swsscommon.Table(cdb, "PORT")
stbl = swsscommon.Table(sdb, "PORT_TABLE")

# set autoneg = false and speed = 1000
# set autoneg = true and speed = 1000
fvs = swsscommon.FieldValuePairs([("autoneg","1"), ("speed", "1000")])
tbl.set("Ethernet0", fvs)
ctbl.set("Ethernet0", fvs)

time.sleep(1)

Expand All @@ -35,7 +35,7 @@ def test_PortAutoNeg_warm(dvs, testlog):
# set speed = 100
fvs = swsscommon.FieldValuePairs([("speed", "100")])

tbl.set("Ethernet0", fvs)
ctbl.set("Ethernet0", fvs)

time.sleep(1)

Expand Down

0 comments on commit cef4bd0

Please sign in to comment.