summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuilong xu <huilongx.xu@intel.com>2015-08-03 15:26:50 +0800
committerMarvin Liu <yong.liu@intel.com>2015-08-04 13:05:49 +0800
commit459559fe16e2c37775274807a334b73a47474b42 (patch)
tree986666e5297178a8c55bdf884949aeb7d0e31978
parent0fcb1a05b2645b50bcc02ab0b530e7f4fb7d2fa8 (diff)
downloaddts-459559fe16e2c37775274807a334b73a47474b42.zip
dts-459559fe16e2c37775274807a334b73a47474b42.tar.gz
dts-459559fe16e2c37775274807a334b73a47474b42.tar.xz
fix reset_queues case failed, when nic on sock 1
Signed-off-by: huilong xu <huilongx.xu@intel.com>
-rw-r--r--tests/TestSuite_shutdown_api.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index 482091a..92ab67f 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -249,14 +249,16 @@ class TestShutdownApi(TestCase):
self.tester.get_interface(self.tester.get_local_port(self.ports[1]))
]
#blackList = self.dut.create_blacklist_string(self.target, self.nic)
+ testcorelist = self.dut.get_core_list("1S/8C/1T", socket=self.ports_socket)
- self.pmdout.start_testpmd("1S/8C/1T", "--portmask=%s" % dts.create_mask([self.ports[0], self.ports[1]]), socket=self.ports_socket)
+ self.pmdout.start_testpmd(testcorelist, "--portmask=%s" % dts.create_mask([self.ports[0], self.ports[1]]), socket=self.ports_socket)
+ fwdcoremask = dts.create_mask(testcorelist[-3:])
self.dut.send_expect("port stop all", "testpmd> ", 100)
self.dut.send_expect("port config all rxq 2", "testpmd> ")
self.dut.send_expect("port config all txq 2", "testpmd> ")
#self.dut.send_expect("set coremask 0x1e", "testpmd> ")
- self.dut.send_expect("set coremask 0xe0", "testpmd> ")
+ self.dut.send_expect("set coremask %s" % fwdcoremask, "testpmd> ")
self.dut.send_expect("set fwd mac", "testpmd>")
self.dut.send_expect("port start all", "testpmd> ", 100)
out = self.dut.send_expect("show config rxtx", "testpmd> ")