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 5D8C5A0487 for ; Wed, 3 Jul 2019 08:15:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 54759374C; Wed, 3 Jul 2019 08:15:35 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id EE6242B99 for ; Wed, 3 Jul 2019 08:15:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2019 23:15:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="174833221" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 02 Jul 2019 23:15:32 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 23:15:32 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 2 Jul 2019 23:15:31 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by shsmsx102.ccr.corp.intel.com ([169.254.2.3]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 14:15:29 +0800 From: "Tu, Lijuan" 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: AQHVLLdZr6eiEIs9gUK37HmSGs9E66a4c/cA Date: Wed, 3 Jul 2019 06:15:28 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BADA47A@SHSMSX101.ccr.corp.intel.com> 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: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGY4MDY1NDItZjhkNS00OTU3LThhNDgtZGYwNDRjZWE1NDhkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicEViSGpjVk5cL0tXN2x5VVdEc3FkRUMrK0hqQmpRNGlVekpPcTFGMm45UzNiWXprZXlEK2pQRzE2NmVlYlZnZlgifQ== 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" Applied, thanks > -----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. >=20 > 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. >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_mac_filter.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_mac_filter.py b/tests/TestSuite_mac_filter.p= y > 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 > + 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 @@ > 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 > + self.frames_to_send, > "Packet has not been received on a new MAC address t= hat has > been added to the port") >=20 > # remove the fake MAC address > -- > 2.17.2