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 346BBA056D; Tue, 3 Mar 2020 08:39:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 280F71BFF0; Tue, 3 Mar 2020 08:39:19 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 8D69B3B5 for ; Tue, 3 Mar 2020 08:39:17 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 23:39:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="233530163" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 02 Mar 2020 23:39:16 -0800 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:39:15 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 23:39:15 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.145]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 15:39:13 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/perf_virtio_user: write throughput value to report when case is failed Thread-Index: AQHV8P8+m1EfjmDe9kmtn0S2ZDUVAKg2e1JQ Date: Tue, 3 Mar 2020 07:39:12 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE93AE@SHSMSX101.ccr.corp.intel.com> References: <1583173758-5410-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1583173758-5410-1-git-send-email-lihongx.ma@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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/perf_virtio_user: write throughput value to report when case is failed 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 lihong > Sent: Tuesday, March 3, 2020 2:29 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] tests/perf_virtio_user: write throughput value = to > report when case is failed >=20 > Signed-off-by: lihong > --- > tests/TestSuite_perf_virtio_user_loopback.py | 5 +++-- > tests/TestSuite_perf_virtio_user_pvp.py | 3 +-- > 2 files changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_perf_virtio_user_loopback.py > b/tests/TestSuite_perf_virtio_user_loopback.py > index 0fb97dd..822e6d9 100644 > --- a/tests/TestSuite_perf_virtio_user_loopback.py > +++ b/tests/TestSuite_perf_virtio_user_loopback.py > @@ -142,6 +142,8 @@ class TestPerfVirtioUserLoopback(TestCase): > """ > results =3D 0.0 > results_row =3D [] > + out =3D self.vhost.send_expect("show port stats all", "testpmd>"= , 60) > + time.sleep(5) > for i in range(10): > out =3D self.vhost.send_expect("show port stats all", "testp= md>", 60) > time.sleep(5) > @@ -261,7 +263,6 @@ class TestPerfVirtioUserLoopback(TestCase): > row_dict0['status'] =3D 'PASS' > else: > row_dict0['status'] =3D 'FAIL' > - self.verify(row_dict0['status'] =3D=3D 'PASS', 'The thro= ughput is not in > correct range') > row_dict1 =3D dict(name=3D"Throughput", value=3Dresult_t= hroughput, > unit=3D"Mpps", delta=3Ddelta) > row_dict2 =3D dict(name=3D"Txd/Rxd", value=3Drow_in["TXD= /RXD"], > unit=3D"descriptor") > row_dict3 =3D dict(name=3D"frame_size", value=3Drow_in["= Frame Size"], > unit=3D"bytes") @@ -274,7 +275,7 @@ class > TestPerfVirtioUserLoopback(TestCase): > '{0:s}_{1}.json'.format( > self.nic, self.suite_name)), 'w') as = fp: > json.dump(self.json_obj, fp) > - self.verify("Fail" not in status_result, "Exceeded Gap") > + self.verify("FAIL" not in status_result, "Exceeded Gap") >=20 > def test_perf_loopback_packed_ring_inorder_mergeable(self): > """ > diff --git a/tests/TestSuite_perf_virtio_user_pvp.py > b/tests/TestSuite_perf_virtio_user_pvp.py > index 2073426..344dba5 100644 > --- a/tests/TestSuite_perf_virtio_user_pvp.py > +++ b/tests/TestSuite_perf_virtio_user_pvp.py > @@ -358,7 +358,6 @@ class TestVirtioSingleCorePerf(TestCase): > row_dict0['status'] =3D 'PASS' > else: > row_dict0['status'] =3D 'FAIL' > - self.verify(row_dict0['status'] =3D=3D 'PASS', 'The thro= ughput is not in > correct range') > row_dict1 =3D dict(name=3D"Throughput", value=3Dresult_t= hroughput, > unit=3D"Mpps", delta=3Ddelta) > row_dict2 =3D dict(name=3D"Txd/Rxd", value=3Drow_in["TXD= /RXD"], > unit=3D"descriptor") > row_dict3 =3D dict(name=3D"frame_size", value=3Drow_in["= Frame Size"], > unit=3D"bytes") @@ -371,7 +370,7 @@ class > TestVirtioSingleCorePerf(TestCase): > '{0:s}_{1}.json'.format( > self.nic, self.suite_name)), 'w') as = fp: > json.dump(self.json_obj, fp) > - self.verify("Fail" not in status_result, "Exceeded Gap") > + self.verify("FAIL" not in status_result, "Exceeded Gap") >=20 > def tear_down(self): > """ > -- > 2.7.4