From cef4bd0063c4b7229f0873d7601d55d563070dbe Mon Sep 17 00:00:00 2001 From: lguohan Date: Fri, 1 Feb 2019 01:53:38 -0800 Subject: [PATCH] [vstest]: fix test_port_an_warm.py test (#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 --- tests/test_port_an_warm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_port_an_warm.py b/tests/test_port_an_warm.py index 4a768d03a82b..50ffbbf81923 100644 --- a/tests/test_port_an_warm.py +++ b/tests/test_port_an_warm.py @@ -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) @@ -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)