From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id BB426C3F4 for ; Mon, 3 Aug 2015 09:26:58 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 03 Aug 2015 00:26:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,599,1432623600"; d="scan'208";a="760658659" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 03 Aug 2015 00:26:57 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t737Qt0o028415; Mon, 3 Aug 2015 15:26:55 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t737Qq0S022225; Mon, 3 Aug 2015 15:26:54 +0800 Received: (from huilongx@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t737QqAv022221; Mon, 3 Aug 2015 15:26:52 +0800 From: "huilong,xu" To: dts@dpdk.org Date: Mon, 3 Aug 2015 15:26:50 +0800 Message-Id: <1438586810-22190-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] fix reset_queues case failed, when nic on sock 1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 07:26:59 -0000 From: huilong xu Signed-off-by: huilong xu --- tests/TestSuite_shutdown_api.py | 6 ++++-- 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> ") -- 1.7.4.4