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 8CBD6A0555; Thu, 20 Feb 2020 07:15:58 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 673111B951; Thu, 20 Feb 2020 07:15:58 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 007D258C4 for ; Thu, 20 Feb 2020 07:15:56 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2020 22:15:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,463,1574150400"; d="scan'208";a="236138764" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.203]) by orsmga003.jf.intel.com with ESMTP; 19 Feb 2020 22:15:54 -0800 From: lihong To: dts@dpdk.org Cc: lihong Date: Thu, 20 Feb 2020 06:47:24 +0800 Message-Id: <1582152444-13314-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [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" 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. """ + self.dut.send_expect('rm vhost-net*', '# ') # test parameters include: frames size, descriptor numbers self.test_parameters = self.get_suite_cfg()['test_parameters'] @@ -201,7 +202,7 @@ class TestVirtioSingleCorePerf(TestCase): self.dut_ports[0]) tx_port = self.tester.get_local_port( self.dut_ports[0]) - for port in xrange(2): + for port in range(2): destination_mac = self.dut.get_mac_address( self.dut_ports[(port) % self.number_of_ports]) pkt = Packet(pkt_type='IP_RAW', pkt_len=frame_size) @@ -235,7 +236,7 @@ class TestVirtioSingleCorePerf(TestCase): eal_params = self.dut.create_eal_parameters(cores=self.core_list_host, ports=[0], prefix='vhost') command_line_client = self.target + "/app/testpmd %s " + \ - "--socket-mem 1024,1024 --legacy-mem " \ + "--socket-mem 1024,1024 " \ "--vdev 'net_vhost0,iface=vhost-net,queues=1' " + \ "-- -i --nb-cores=%d --txd=%d --rxd=%d" command_line_client = command_line_client % (eal_params, len(self.core_list_host)-1, -- 2.7.4