From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D7C1A046B for ; Thu, 27 Jun 2019 09:09:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EE6A63DC; Thu, 27 Jun 2019 09:09:32 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 1E1F42AB for ; Thu, 27 Jun 2019 09:09:31 +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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2019 00:09:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,422,1557212400"; d="scan'208";a="183381592" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 27 Jun 2019 00:09:30 -0700 From: "zhu,shuai" To: dts@dpdk.org Cc: "zhu,shuai" Date: Thu, 27 Jun 2019 15:14:12 +0800 Message-Id: <1561619652-82208-1-git-send-email-shuaix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/mac_filter:Modify the number of packages in the verification condition. 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" Since the current number of packets is 4, the verification conditions are not met, and the number of packets in the verification condition is modified. Signed-off-by: zhu,shuai --- tests/TestSuite_mac_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_mac_filter.py b/tests/TestSuite_mac_filter.py index 9b896b4..a28bf9a 100644 --- a/tests/TestSuite_mac_filter.py +++ b/tests/TestSuite_mac_filter.py @@ -109,7 +109,7 @@ class TestMacFilter(TestCase): out = self.dut.get_session_output() cur_rxpkt = utils.regexp(out, "received ([0-9]+) packets") # check the packet increase - self.verify(int(cur_rxpkt) == self.frames_to_send, + self.verify(int(cur_rxpkt)*self.frames_to_send == self.frames_to_send, "Packet has not been received on default address") # send one packet to a different MAC address @@ -127,7 +127,7 @@ class TestMacFilter(TestCase): out = self.dut.get_session_output() cur_rxpkt = utils.regexp(out, "received ([0-9]+) packets") # check the packet increase - self.verify(int(cur_rxpkt) == self.frames_to_send, + self.verify(int(cur_rxpkt)*self.frames_to_send == self.frames_to_send, "Packet has not been received on a new MAC address that has been added to the port") # remove the fake MAC address -- 2.17.2