summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuilong xu <huilongx.xu@intel.com>2015-07-20 11:06:18 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-20 12:06:49 +0800
commit515279c0a292318efc1baa42b156592dd039c129 (patch)
treeeb12d71f5b833d8ab8917a9038e0c2d9e4191a49
parent1af955c8c12728ee4fd70fb3618220b5bc509754 (diff)
downloaddts-515279c0a292318efc1baa42b156592dd039c129.zip
dts-515279c0a292318efc1baa42b156592dd039c129.tar.gz
dts-515279c0a292318efc1baa42b156592dd039c129.tar.xz
fix failed case rss hash key size and set_promiscuousmode
Signed-off-by: huilong xu <huilongx.xu@intel.com>
-rw-r--r--tests/TestSuite_pmdrssreta.py2
-rw-r--r--tests/TestSuite_shutdown_api.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py
index 9f9ba17..df9c16c 100644
--- a/tests/TestSuite_pmdrssreta.py
+++ b/tests/TestSuite_pmdrssreta.py
@@ -245,7 +245,7 @@ class TestPmdrssreta(TestCase):
if m is not None:
size = m.group(1)
print dts.GREEN("******************")
- print dts.GREEN("NIC %s hash size %d and expected %d" % (self.nic, size, nic_rss_key_size[self.nic]))
+ print dts.GREEN("NIC %s hash size %d and expected %d" % (self.nic, int(size), nic_rss_key_size[self.nic]))
if (nic_rss_key_size[self.nic] == int(size)):
self.verify(True, "pass")
else:
diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index ce9b8c0..482091a 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -214,7 +214,7 @@ class TestShutdownApi(TestCase):
"""
Promiscuous mode.
"""
- self.pmdout.start_testpmd("Default", "--portmask=%s" % dts.create_mask([self.ports[0], self.ports[1]]), self.ports_socket)
+ self.pmdout.start_testpmd("Default", "--portmask=%s" % dts.create_mask([self.ports[0], self.ports[1]]), socket = self.ports_socket)
self.dut.send_expect("port stop all", "testpmd> ", 100)
self.dut.send_expect("set promisc all off", "testpmd> ")