[dts] [PATCH V1 5/5] tests/veb_switch: update scripts to meet CVL

Haiyang Zhao haiyangx.zhao at intel.com
Thu Jun 11 08:59:40 CEST 2020


*.update scripts to meet CVL.

Signed-off-by: Haiyang Zhao <haiyangx.zhao at intel.com>
---
 tests/TestSuite_veb_switch.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py
index 0753646..b6b4034 100644
--- a/tests/TestSuite_veb_switch.py
+++ b/tests/TestSuite_veb_switch.py
@@ -157,7 +157,8 @@ class TestVEBSwitching(TestCase):
         Prerequisite steps for each test suite.
         """
         self.verify(self.nic in ["fortville_eagle", "fortville_spirit",
-                    "fortville_spirit_single", "fortville_25g", "carlsville"],
+                    "fortville_spirit_single", "fortville_25g", "carlsville",
+                                 'columbiaville_100g', 'columbiaville_25g'],
                     "NIC Unsupported: " + str(self.nic))
         self.dut_ports = self.dut.get_ports(self.nic)
         self.verify(len(self.dut_ports) >= 1, "Insufficient ports")
@@ -279,6 +280,8 @@ class TestVEBSwitching(TestCase):
 
         vf0_tx_stats = self.veb_get_pmd_stats("first", 0, "tx")
         vf1_rx_stats = self.veb_get_pmd_stats("second", 0, "rx")
+        if self.kdriver == 'ice':
+            vf1_rx_stats[-1] = vf1_rx_stats[-1] + 4
         self.verify(vf0_tx_stats[0] != 0, "no packet was sent by VF0")
         self.verify(vf0_tx_stats == vf1_rx_stats, "VF1 failed to receive packets from VF0")
     
-- 
1.8.3.1



More information about the dts mailing list