From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C59C3A046B for ; Wed, 26 Jun 2019 09:35:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5B49D5398; Wed, 26 Jun 2019 09:35:09 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 5BD0A4C8B for ; Wed, 26 Jun 2019 09:35:08 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 00:35:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="188567214" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 26 Jun 2019 00:35:06 -0700 From: zhuwenhui To: dts@dpdk.org Cc: zhuwenhui Date: Wed, 26 Jun 2019 15:39:48 +0800 Message-Id: <1561534788-72081-1-git-send-email-wenhuix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/userspace_ethtool:change judgment conditions 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" The number of pkts is 4, and the judgment condition is also changed to 4. Signed-off-by: zhuwenhui --- tests/TestSuite_userspace_ethtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 71397f6..c774552 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -567,7 +567,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): pkt = Packet(pkt_len=pkt_size) pkt.send_pkt(tx_port=intf, count=4) rx_pkts, _ = self.strip_portstats(index) - self.verify(rx_pkts == ori_rx_pkts + 1, "Packet match mtu not forwarded as expected") + self.verify(rx_pkts == ori_rx_pkts + 4, "Packet match mtu not forwarded as expected") pkt = Packet(pkt_len=mtu + 1 + HEADER_SIZE['eth']) pkt.send_pkt(tx_port=intf, count=4) rx_pkts_over, _ = self.strip_portstats(index) -- 2.17.2