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 0CA73A0525; Fri, 21 Feb 2020 03:03:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 034F41BF9A; Fri, 21 Feb 2020 03:03:23 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 5D58325B3 for ; Fri, 21 Feb 2020 03:03:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2020 18:03:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,466,1574150400"; d="scan'208";a="383327208" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga004.jf.intel.com with ESMTP; 20 Feb 2020 18:03:19 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Feb 2020 18:03:19 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 20 Feb 2020 18:03:19 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 20 Feb 2020 18:03:18 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.196]) with mapi id 14.03.0439.000; Fri, 21 Feb 2020 10:03:17 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/perf_virtio_user_pvp: modify code to support py3 Thread-Index: AQHV57VNBGez96w/FEu7bJ4c+WvhNqgk5rtA Date: Fri, 21 Feb 2020 02:03:16 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCC94A@SHSMSX101.ccr.corp.intel.com> References: <1582152444-13314-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1582152444-13314-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_pvp: modify code to support py3 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: Thursday, February 20, 2020 6:47 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] tests/perf_virtio_user_pvp: modify code to supp= ort > py3 >=20 > Signed-off-by: lihong > --- > tests/TestSuite_perf_virtio_user_pvp.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_perf_virtio_user_pvp.py > b/tests/TestSuite_perf_virtio_user_pvp.py > index 91e21dc..d49bd19 100644 > --- a/tests/TestSuite_perf_virtio_user_pvp.py > +++ b/tests/TestSuite_perf_virtio_user_pvp.py > @@ -71,6 +71,7 @@ class TestVirtioSingleCorePerf(TestCase): > set_up_all in debug mode. > """ >=20 > + self.dut.send_expect('rm vhost-net*', '# ') > # test parameters include: frames size, descriptor numbers > self.test_parameters =3D self.get_suite_cfg()['test_parameters'] >=20 > @@ -201,7 +202,7 @@ class TestVirtioSingleCorePerf(TestCase): > self.dut_ports[0]) > tx_port =3D self.tester.get_local_port( > self.dut_ports[0]) > - for port in xrange(2): > + for port in range(2): > destination_mac =3D self.dut.get_mac_address( > self.dut_ports[(port) % self.number_of_ports]) > pkt =3D Packet(pkt_type=3D'IP_RAW', pkt_len=3Dframe_size) @@= -235,7 > +236,7 @@ class TestVirtioSingleCorePerf(TestCase): > eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_host, > ports=3D[0], prefix=3D'vhost') > command_line_client =3D self.target + "/app/testpmd %s " + \ > - "--socket-mem 1024,1024 --legacy-mem " \ > + "--socket-mem 1024,1024 " \ > "--vdev 'net_vhost0,iface=3Dvhost-net,queues=3D1= ' " + \ > "-- -i --nb-cores=3D%d --txd=3D%d --rxd=3D%d" > command_line_client =3D command_line_client % (eal_params, > len(self.core_list_host)-1, > -- > 2.7.4