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 C644EA0518; Fri, 24 Jul 2020 04:30:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B42901D483; Fri, 24 Jul 2020 04:30:59 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 88AB51D452 for ; Fri, 24 Jul 2020 04:30:57 +0200 (CEST) IronPort-SDR: D1TT2T5wCJRtWFGsNSYjxmcrcC/XwLKK7uCmP6FqTvSP2LD15d7q84pJtarWto8BpfhWrBlBPl p8JSMa7/NZAQ== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="212184733" X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="212184733" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 19:30:52 -0700 IronPort-SDR: PKB7EndTjZQOifwxunZpiaWH1ZUo0y5o/I2nBI8l4qeALBvtVgBJg/vkeNCp7OoW36Jcqnv/dd fMcCvg5B19vA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="488584361" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 23 Jul 2020 19:30:51 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Jul 2020 19:30:51 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.32]) with mapi id 14.03.0439.000; Fri, 24 Jul 2020 10:30:48 +0800 From: "Tu, Lijuan" To: "Ling, WeiX" , "dts@dpdk.org" CC: "Ling, WeiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_distributor: Fix test_perf_distributor case result is 0 Thread-Index: AQHWXngz2JWui7ABz0228JKIM9blWakWB+ug Date: Fri, 24 Jul 2020 02:30:48 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC8405B@SHSMSX101.ccr.corp.intel.com> References: <20200720172358.49460-1-weix.ling@intel.com> In-Reply-To: <20200720172358.49460-1-weix.ling@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.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/TestSuite_distributor: Fix test_perf_distributor case result is 0 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 On Behalf Of lingwei > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B21=1B$BF|=1B(B 1:24 > To: dts@dpdk.org > Cc: Ling, WeiX > Subject: [dts] [PATCH V1] tests/TestSuite_distributor: Fix test_perf_dist= ributor > case result is 0 >=20 > Fix test_perf_distributor case result is 0. >=20 > Signed-off-by: lingwei > --- > tests/TestSuite_distributor.py | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_distributor.py b/tests/TestSuite_distributor= .py index > aaad6c7..9ccc761 100644 > --- a/tests/TestSuite_distributor.py > +++ b/tests/TestSuite_distributor.py > @@ -138,8 +138,6 @@ class TestDistributor(TestCase): >=20 > self.dut.send_expect(cmd, "doing packet RX", timeout=3D30) >=20 > - self.app_output =3D self.dut.session.get_session_before(time= out=3D2) > - > # clear streams before add new streams > self.tester.pktgen.clear_streams() > # run packet generator > @@ -147,6 +145,9 @@ class TestDistributor(TestCase): > None, self.tester.pktgen) > _, pps =3D self.tester.pktgen.measure_throughput(stream_ids= =3Dstreams) >=20 > + # get aap output after sending packet > + self.app_output =3D > + self.dut.session.get_session_before(timeout=3D2) > + > self.dut.send_expect("^C", "#") >=20 > pps /=3D 1000000.0 > @@ -240,6 +241,8 @@ class TestDistributor(TestCase): > """ > # skip the last one, we use the next one > output =3D output[:output.rfind("RX Thread")] > + # skip the last two, we use the next one > + output =3D output[:output.rfind("RX Thread")] > output =3D output[output.rfind("RX Thread"):] > rec_rate =3D 0.0 > enq_rate =3D 0.0 > -- > 2.17.1