Skip to content

Commit cef4bd0

Browse files
authored
[vstest]: fix test_port_an_warm.py test (sonic-net#779)
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>
1 parent 9f20eda commit cef4bd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_port_an_warm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ def test_PortAutoNeg_warm(dvs, testlog):
1212
ctbl = swsscommon.Table(cdb, "PORT")
1313
stbl = swsscommon.Table(sdb, "PORT_TABLE")
1414

15-
# set autoneg = false and speed = 1000
15+
# set autoneg = true and speed = 1000
1616
fvs = swsscommon.FieldValuePairs([("autoneg","1"), ("speed", "1000")])
17-
tbl.set("Ethernet0", fvs)
17+
ctbl.set("Ethernet0", fvs)
1818

1919
time.sleep(1)
2020

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

38-
tbl.set("Ethernet0", fvs)
38+
ctbl.set("Ethernet0", fvs)
3939

4040
time.sleep(1)
4141

0 commit comments

Comments
 (0)