[dts] [PATCH] tests shutdown_api: add NIC type 'mgpk'
Peng yuan
yuan.peng at intel.com
Mon Sep 12 08:49:36 CEST 2016
From: pengyuan <yuan.peng at intel.com>
Signed-off-by: pengyuan <yuan.peng at intel.com>
diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index f03734a..2b8704c 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -309,7 +309,7 @@ class TestShutdownApi(TestCase):
for port in self.ports:
out = self.tester.send_expect(
"ethtool %s" % self.tester.get_interface(self.tester.get_local_port(port)), "# ")
- self.verify("Speed: %s" % config[0] in out,
+ self.verify("Speed: %s" % config[0] in out,
"Wrong speed reported by the self.tester.")
self.verify("Duplex: %s" % config[1] in out,
"Wrong link type reported by the self.tester.")
@@ -336,7 +336,7 @@ class TestShutdownApi(TestCase):
self.dut.send_expect("port start all", "testpmd> ", 100)
self.dut.send_expect("start", "testpmd> ")
- if self.nic in ['niantic', 'twinpond', 'kawela_4', 'ironpond', 'springfountain', 'springville', 'powerville']:
+ if self.nic in ['mgpk', 'niantic', 'twinpond', 'kawela_4', 'ironpond', 'springfountain', 'springville', 'powerville']:
# nantic vlan length will not be calculated
vlan_jumbo_size = jumbo_size + 4
else:
--
2.5.0
More information about the dts
mailing list