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 4D5A8A046B for ; Thu, 27 Jun 2019 09:11:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 422A73DC; Thu, 27 Jun 2019 09:11:03 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 460942AB for ; Thu, 27 Jun 2019 09:11:02 +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 orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2019 00:11:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,422,1557212400"; d="scan'208";a="188959200" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 27 Jun 2019 00:11:00 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 27 Jun 2019 00:11:00 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 27 Jun 2019 00:11:00 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.33]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.156]) with mapi id 14.03.0439.000; Thu, 27 Jun 2019 15:10:58 +0800 From: "Zhu, WenhuiX" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/mac_filter:Modify the number of packages in the verification condition. Thread-Index: AQHVLLdZdfQI1X+k1EyFtE6qc9fTjaavFWbQ Date: Thu, 27 Jun 2019 07:10:57 +0000 Message-ID: References: <1561619652-82208-1-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1561619652-82208-1-git-send-email-shuaix.zhu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by: Zhu, WenhuiX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai Sent: Thursday, June 27, 2019 3:14 PM To: dts@dpdk.org Cc: Zhu, ShuaiX Subject: [dts] [PATCH V1] tests/mac_filter:Modify the number of packages in= the verification condition. Since the current number of packets is 4, the verification conditions are n= ot 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 =3D self.dut.get_session_output() cur_rxpkt =3D utils.regexp(out, "received ([0-9]+) packets") # check the packet increase - self.verify(int(cur_rxpkt) =3D=3D self.frames_to_send, + self.verify(int(cur_rxpkt)*self.frames_to_send =3D=3D=20 + self.frames_to_send, "Packet has not been received on default address") =20 # send one packet to a different MAC address @@ -127,7 +127,7 @@ c= lass TestMacFilter(TestCase): out =3D self.dut.get_session_output() cur_rxpkt =3D utils.regexp(out, "received ([0-9]+) packets") # check the packet increase - self.verify(int(cur_rxpkt) =3D=3D self.frames_to_send, + self.verify(int(cur_rxpkt)*self.frames_to_send =3D=3D=20 + self.frames_to_send, "Packet has not been received on a new MAC address tha= t has been added to the port") =20 # remove the fake MAC address -- 2.17.2