From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C1CD2C3A0 for ; Mon, 20 Jul 2015 05:06:26 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 19 Jul 2015 20:06:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,506,1432623600"; d="scan'208";a="609152070" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 19 Jul 2015 20:06:24 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6K36MmW002528; Mon, 20 Jul 2015 11:06:22 +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 t6K36KBY003609; Mon, 20 Jul 2015 11:06:22 +0800 Received: (from huilongx@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6K36KYM003605; Mon, 20 Jul 2015 11:06:20 +0800 From: "huilong,xu" To: dts@dpdk.org Date: Mon, 20 Jul 2015 11:06:18 +0800 Message-Id: <1437361578-3574-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] fix failed case rss hash key size and set_promiscuousmode 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, 20 Jul 2015 03:06:27 -0000 From: huilong xu Signed-off-by: huilong xu --- tests/TestSuite_pmdrssreta.py | 2 +- tests/TestSuite_shutdown_api.py | 2 +- 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> ") -- 1.7.4.4