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 07A4EA0555; Thu, 20 Feb 2020 07:18:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E1C051BF9A; Thu, 20 Feb 2020 07:18:16 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id E65941B951 for ; Thu, 20 Feb 2020 07:18:14 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2020 22:18:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,463,1574150400"; d="scan'208";a="315634648" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga001.jf.intel.com with ESMTP; 19 Feb 2020 22:18:13 -0800 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 19 Feb 2020 22:18:13 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) 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 14:18:11 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Thu, 20 Feb 2020 14:18:11 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] tests/perf_virtio_user_pvp: modify code to support py3 Thread-Index: AQHV57VAjUDWtybVAUGYYDEKPch6fKgjm4ww Date: Thu, 20 Feb 2020 06:18:10 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] 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" Tested-by: ma,lhong -----Original Message----- From: Ma, LihongX=20 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 support= py3 Signed-off-by: lihong --- tests/TestSuite_perf_virtio_user_pvp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.cor= e_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(sel= f.core_list_host)-1, -- 2.7.4