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 A9FAEA2EFC for ; Tue, 17 Sep 2019 02:48:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8CAB41BFC2; Tue, 17 Sep 2019 02:48:08 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 9F4AE1BFC1 for ; Tue, 17 Sep 2019 02:48:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2019 17:48:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,514,1559545200"; d="scan'208";a="177218277" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 16 Sep 2019 17:48:05 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Sep 2019 17:48:04 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Sep 2019 17:48:04 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by shsmsx102.ccr.corp.intel.com ([169.254.2.113]) with mapi id 14.03.0439.000; Tue, 17 Sep 2019 08:48:02 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path. Thread-Index: AQHVYu5K/upjVvq4gUSRbd+pw5zL8KcvHTyQ Date: Tue, 17 Sep 2019 00:48:02 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB225A5@SHSMSX101.ccr.corp.intel.com> References: <1567580621-141003-1-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1567580621-141003-1-git-send-email-shuaix.zhu@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTYxMzlhMTktYTI5My00OTQ2LTgyYmUtOTA1NDczOTk0ZjU2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTjBZcXBaalRjcXp5aTFRSER1c1FGanozUXJWUkVkXC9tcHB5UXhPQkE0K2JDaVpHN3VuRm9YYVNxTlptTWxobGwifQ== 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 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path. 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 the series, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai > Sent: Wednesday, September 4, 2019 3:04 PM > To: dts@dpdk.org > Cc: Zhu, ShuaiX > Subject: [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative > path to an absolute path. >=20 > From: "Zhu,Shuai" >=20 > Change the relative path to an absolute path. >=20 > Signed-off-by: Zhu,Shuai > --- > tests/TestSuite_vm2vm_virtio_pmd.py | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py > b/tests/TestSuite_vm2vm_virtio_pmd.py > index ca97d4d..2db020f 100644 > --- a/tests/TestSuite_vm2vm_virtio_pmd.py > +++ b/tests/TestSuite_vm2vm_virtio_pmd.py > @@ -58,6 +58,7 @@ class TestVM2VMVirtioPMD(TestCase): > self.memory_channel =3D self.dut.get_memory_channels() > self.vm_num =3D 2 > self.dump_pcap =3D "/root/pdump-rx.pcap" > + self.base_dir =3D self.dut.base_dir.replace('~', '/root') >=20 > def set_up(self): > """ > @@ -68,7 +69,7 @@ class TestVM2VMVirtioPMD(TestCase): > self.result_table_create(self.table_header) > self.dut.send_expect("killall -s INT testpmd", "#") > self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") > - self.dut.send_expect("rm -rf ./vhost-net*", "#") > + self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, > + "#") > self.vhost =3D self.dut.new_session(suite=3D"vhost") > self.vm_dut =3D [] > self.vm =3D [] > @@ -93,12 +94,12 @@ class TestVM2VMVirtioPMD(TestCase): > """ > self.command_line =3D self.dut.target + "/app/testpmd -c %s -n %= d " + \ > "--socket-mem 2048,2048 --legacy-mem --no-pci --file-prefix= =3Dvhost " + > \ > - "--vdev 'net_vhost0,iface=3Dvhost-net0,queues=3D1' " + \ > - "--vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' " + \ > + "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1' " + \ > + "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1' " + \ > "-- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" >=20 > self.command_line =3D self.command_line % ( > - self.coremask, self.memory_channel) > + self.coremask, self.memory_channel, > + self.base_dir, self.base_dir) > self.vhost.send_expect(self.command_line, "testpmd> ", 30) > self.vhost.send_expect("set fwd mac", "testpmd> ", 30) > self.vhost.send_expect("start", "testpmd> ", 30) @@ -151,7 +152,= 7 @@ > class TestVM2VMVirtioPMD(TestCase): > vm_info =3D VM(self.dut, 'vm%d' % i, 'vhost_sample') > vm_params =3D {} > vm_params['driver'] =3D 'vhost-user' > - vm_params['opt_path'] =3D './vhost-net%d' % i > + vm_params['opt_path'] =3D self.base_dir + '/vhost-net%d' % i > vm_params['opt_mac'] =3D "52:54:00:00:00:0%d" % (i+1) > vm_params['opt_settings'] =3D setting_args > vm_info.set_vm_device(**vm_params) > -- > 2.17.1