From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 48899A0AC5 for ; Mon, 27 May 2019 10:19:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B1D1F94; Mon, 27 May 2019 10:19:55 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E6AF4A49 for ; Mon, 27 May 2019 10:19:53 +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 orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 May 2019 01:19:52 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 27 May 2019 01:19:52 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 May 2019 01:19:49 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 May 2019 01:19:48 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.136]) with mapi id 14.03.0415.000; Mon, 27 May 2019 16:19:47 +0800 From: "Wu, ChangqingX" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/project_dpdk: add RTE config when build dpdk and apps Thread-Index: AQHVFFfCdhx9jxCPBEyK6EByps6T2qZ+oSIw Date: Mon, 27 May 2019 08:19:46 +0000 Message-ID: <7F81DD3887C58F49A6B2EFEC3C28E22E0B6E5EA1@SHSMSX101.ccr.corp.intel.com> References: <1558913074-15746-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1558913074-15746-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.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework/project_dpdk: add RTE config when build dpdk and apps 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: Wu, ChangqingX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong Sent: Monday, May 27, 2019 7:25 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [dts] [PATCH V1] framework/project_dpdk: add RTE config when build= dpdk and apps When dts lost the session with DUT, it will try to reconnet to DUT, but it = will lose the RTE config, so add the RTE config in the function of build dp= dk and apps. Signed-off-by: lihong --- framework/project_dpdk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 60= 35c68..7bbd749 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -198,6 +198,8 @@ class DPDKdut(Dut): """ Build DPDK source code with specified target. """ + self.send_expect("export RTE_TARGET=3D" + target, "#") + self.send_expect("export RTE_SDK=3D`pwd`", "#") build_install_dpdk =3D getattr(self, 'build_install_dpdk_%s' % sel= f.get_os_type()) build_install_dpdk(target, extra_options) =20 @@ -351,6 +353,8 @@ class DPDKdut(Dut): """ Build dpdk sample applications. """ + self.send_expect("export RTE_TARGET=3D" + self.target, "#") + self.send_expect("export RTE_SDK=3D`pwd`", "#") build_dpdk_apps =3D getattr(self, 'build_dpdk_apps_%s' % self.get_= os_type()) return build_dpdk_apps(folder, extra_options) =20 -- 2.7.4