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 7D13CA0567; Fri, 13 Mar 2020 07:37:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6A5651C01F; Fri, 13 Mar 2020 07:37:28 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id E3DEA2BE3 for ; Fri, 13 Mar 2020 07:37:26 +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; 12 Mar 2020 23:37:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="243279372" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 12 Mar 2020 23:37:25 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:37:25 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:37:25 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.206]) with mapi id 14.03.0439.000; Fri, 13 Mar 2020 14:37:22 +0800 From: "Tu, Lijuan" To: "Han, YingyaX" , "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 2/2]tests/vmdq_dcb:Fix the error of setting parameters before compiling the application Thread-Index: AQHV9rqEJMe51stig0CSa7maLfxxKahGFjdQ Date: Fri, 13 Mar 2020 06:37:21 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC82C@SHSMSX101.ccr.corp.intel.com> References: <1583831206-152754-1-git-send-email-yingyax.han@intel.com> In-Reply-To: <1583831206-152754-1-git-send-email-yingyax.han@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 2/2]tests/vmdq_dcb:Fix the error of setting parameters before compiling the application 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: Han, YingyaX > Sent: Tuesday, March 10, 2020 5:07 PM > To: dts@dpdk.org; Tu, Lijuan > Cc: Han, YingyaX > Subject: [dts][PATCH V1 2/2]tests/vmdq_dcb:Fix the error of setting > parameters before compiling the application >=20 > Signed-off-by: hanyingya > --- > tests/TestSuite_vmdq_dcb.py | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_vmdq_dcb.py b/tests/TestSuite_vmdq_dcb.py > index 8641c7c..44abffc 100644 > --- a/tests/TestSuite_vmdq_dcb.py > +++ b/tests/TestSuite_vmdq_dcb.py > @@ -93,9 +93,14 @@ class TestVmdqDcb(TestCase): > """ > Rebuild dpdk > """ > - self.dut.send_expect("sed -i -e > 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=3D?/" > - > "CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=3D%s/' ./config/common_ > base" % nb_queue_per_vm, "#", 20) > - self.dut.build_install_dpdk(self.target) > + out =3D self.dut.send_expect("grep > 'CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM' ./config/common_base", > "#", 20) > + vm_num =3D re.findall(r'\d+', out)[-1] > + if str(nb_queue_per_vm) =3D=3D vm_num: > + return > + else: > + self.dut.send_expect("sed -i -e > 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=3D%s/CONFIG_RTE_LIBRT > E_I40E_" > + "QUEUE_NUM_PER_VM=3D%s/' ./config/common_ba= se" % > (vm_num, nb_queue_per_vm), "#", 20) > + self.dut.build_install_dpdk(self.target) >=20 > def start_application(self, npools, ntcs): > """ > -- > 2.17.2