From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 1F6355F17 for ; Thu, 17 May 2018 04:08:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 19:08:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,408,1520924400"; d="scan'208";a="55937496" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 16 May 2018 19:08:18 -0700 From: "han,yingya" To: dts@dpdk.org Cc: "han,yingya" Date: Thu, 17 May 2018 10:09:34 +0800 Message-Id: <1526522974-14883-1-git-send-email-yingyax.han@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1]tests/shutdown_api: fix the CRC stripping enabled issue 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: Thu, 17 May 2018 02:08:21 -0000 the output of CRC stripping changed in 18.05 and 'Rx offloads=0x1000' is defined as DEV_RX_OFFLOAD_CRC_STRIP. Signed-off-by: han,yingya --- tests/TestSuite_shutdown_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index af0b77d..4c7ca09 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -253,8 +253,8 @@ class TestShutdownApi(TestCase): 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> ") - self.verify("RX queues=2" in out, "RX queues not reconfigured properly") - self.verify("TX queues=2" in out, "TX queues not reconfigured properly") + self.verify("RX queue number: 2" in out, "RX queues not reconfigured properly") + self.verify("Tx queue number: 2" in out, "TX queues not reconfigured properly") self.dut.send_expect("start", "testpmd> ") self.check_forwarding() self.dut.send_expect("quit", "# ", 30) @@ -263,7 +263,7 @@ class TestShutdownApi(TestCase): """ Reconfigure All Ports With The Same Configurations (CRC) """ - self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop" % utils.create_mask(self.ports), socket=self.ports_socket) + self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --disable-crc-strip" % utils.create_mask(self.ports), socket=self.ports_socket) self.dut.send_expect("port stop all", "testpmd> ", 100) self.dut.send_expect("port config all crc-strip on", "testpmd> ") @@ -271,7 +271,7 @@ class TestShutdownApi(TestCase): self.dut.send_expect("port start all", "testpmd> ", 100) out = self.dut.send_expect("show config rxtx", "testpmd> ") self.verify( - "CRC stripping enabled" in out, "CRC stripping not enabled properly") + "Rx offloads=0x1000" in out, "CRC stripping not enabled properly") self.dut.send_expect("start", "testpmd> ") self.check_forwarding() -- 1.9.3