From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D628D5921 for ; Fri, 27 Nov 2015 08:14:04 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 26 Nov 2015 23:14:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,350,1444719600"; d="scan'208";a="829977916" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga001.jf.intel.com with ESMTP; 26 Nov 2015 23:14:03 -0800 From: yongjie To: dts@dpdk.org Date: Fri, 27 Nov 2015 15:09:34 +0800 Message-Id: <1448608174-27198-2-git-send-email-yongjiex.gu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1448608174-27198-1-git-send-email-yongjiex.gu@intel.com> References: <1448608174-27198-1-git-send-email-yongjiex.gu@intel.com> Cc: Gu yongjie Subject: [dts] [PATCH] change the verification of pktbytes in jumboframes cases 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: Fri, 27 Nov 2015 07:14:05 -0000 From: Gu yongjie Change the verification of pktbytes,because DPDK removes the crc bytes from byte counter. Signed-off-by: Gu yongjie --- tests/TestSuite_jumboframes.py | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py index a295624..1cceba8 100644 --- a/tests/TestSuite_jumboframes.py +++ b/tests/TestSuite_jumboframes.py @@ -93,12 +93,8 @@ class TestJumboframes(TestCase): p1rx_err -= gp1rx_err if received: - if self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: - self.verify((p0tx_pkts == p1rx_pkts) and ((p0tx_bytes + 4) == pktsize) and (p1rx_bytes == pktsize), - "packet pass assert error") - else: - self.verify((p0tx_pkts == p1rx_pkts) and (p0tx_bytes == pktsize) and (p1rx_bytes == pktsize), - "packet pass assert error") + self.verify((p0tx_pkts == p1rx_pkts) and ((p0tx_bytes + 4) == pktsize) and ((p1rx_bytes + 4) == pktsize), + "packet pass assert error") else: #self.verify(p0tx_pkts == p1rx_pkts and (p1rx_err == 1 or p1rx_pkts == 0), self.verify(p1rx_err == 1 or p0tx_pkts == 0, "packet drop assert error") -- 1.7.4.4