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 B2430A2EFC for ; Tue, 17 Sep 2019 02:54:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D58B1BFC2; Tue, 17 Sep 2019 02:54:26 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id AB3C41BF32 for ; Tue, 17 Sep 2019 02:54:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2019 17:54:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,514,1559545200"; d="scan'208";a="186002629" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga008.fm.intel.com with ESMTP; 16 Sep 2019 17:54:23 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Sep 2019 17:54:18 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Sep 2019 17:47:57 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.235]) with mapi id 14.03.0439.000; Tue, 17 Sep 2019 08:47:55 +0800 From: "Tu, Lijuan" To: "Zhu, WenhuiX" , "dts@dpdk.org" CC: "Zhu, WenhuiX" Thread-Topic: [dts] [PATCH V1 1/8] tests/virtio_pvp_regression:vhost-net changed to absolute path Thread-Index: AQHVYu0wwqaz4jRuaUK5zJBmKgmio6cvHSMw Date: Tue, 17 Sep 2019 00:47:55 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB22599@SHSMSX101.ccr.corp.intel.com> References: <1567580144-140807-1-git-send-email-wenhuix.zhu@intel.com> In-Reply-To: <1567580144-140807-1-git-send-email-wenhuix.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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzkzMzM2ZmYtYWZiMi00MDVhLWIwOGItNjFkY2RhOTRjNTE4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWFB3NEoxYVJ3YnVIbHdTKzBsZnBpZjZIWkVFSlZ2Wnh5NzNYMkFmejVJQXBtMXhFa1ZXT093ZE9EcW1nM3hqSiJ9 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/virtio_pvp_regression:vhost-net changed to 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 zhuwenhui > Sent: Wednesday, September 4, 2019 2:56 PM > To: dts@dpdk.org > Cc: Zhu, WenhuiX > Subject: [dts] [PATCH V1 1/8] tests/virtio_pvp_regression:vhost-net chang= ed > to absolute path >=20 > Vhost-net changed to absolute path. >=20 > Signed-off-by: zhuwenhui > --- > tests/TestSuite_virtio_pvp_regression.py | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_virtio_pvp_regression.py > b/tests/TestSuite_virtio_pvp_regression.py > index 902ac09..84bf8c2 100644 > --- a/tests/TestSuite_virtio_pvp_regression.py > +++ b/tests/TestSuite_virtio_pvp_regression.py > @@ -91,13 +91,14 @@ class TestVirtioPVPRegression(TestCase): > self.tester.send_expect('mkdir -p %s' % self.out_path, '# ') > # create an instance to set stream field setting > self.pktgen_helper =3D PacketGeneratorHelper() > + self.base_dir =3D self.dut.base_dir.replace('~', '/root') >=20 > def set_up(self): > """ > Run before each test case. > """ > self.vhost =3D self.dut.new_session(suite=3D"vhost-user") > - self.dut.send_expect("rm -rf ./vhost-net*", "#") > + self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, > + "#") >=20 > def packet_params_set(self): > self.frame_sizes =3D [64, 1518] > @@ -205,7 +206,7 @@ class TestVirtioPVPRegression(TestCase): > self.vm =3D VM(self.dut, 'vm0', self.suite_name) > vm_params =3D {} > vm_params['driver'] =3D 'vhost-user' > - vm_params['opt_path'] =3D './vhost-net' > + vm_params['opt_path'] =3D '%s/vhost-net' % self.base_dir > vm_params['opt_mac'] =3D self.virtio1_mac > vm_params['opt_server'] =3D 'server' > vm_params['opt_queue'] =3D self.queues_number @@ -249,11 +250,11 > @@ class TestVirtioPVPRegression(TestCase): > """ > command_line_client =3D self.dut.target + "/app/testpmd -n %d -c= %s \ > --socket-mem %s --file-prefix=3Dvhost -w %s \ > - --vdev 'eth_vhost0,iface=3Dvhost-net,queues=3D%d,client=3D1'= -- \ > + --vdev 'eth_vhost0,iface=3D%s/vhost-net,queues=3D%d,client= =3D1' > + -- \ > -i --nb-cores=3D%d --rxq=3D%d --txq=3D%d --txd=3D1024 --rxd= =3D1024" > command_line_client =3D command_line_client % ( > self.memory_channel, self.coremask, self.socket_= mem, > - self.dut.ports_info[self.pf]['pci'], > + self.dut.ports_info[self.pf]['pci'], > + self.base_dir, > self.queues_number, self.queues_number, > self.queues_number, > self.queues_number) > self.vhost.send_expect(command_line_client, "testpmd> ", 30) @@ = - > 346,7 +347,7 @@ class TestVirtioPVPRegression(TestCase): > self.vm.stop() > self.dut.send_expect("killall -I testpmd", '#', 20) > 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, > + "#") >=20 > def pvp_regression_run(self, case_info, modem, virtio_path): > """ > -- > 2.17.2