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 A4BF5A0096 for ; Mon, 3 Jun 2019 10:47:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DAD0A1B9B7; Mon, 3 Jun 2019 10:47:40 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C10691B9CC for ; Mon, 3 Jun 2019 10:47:37 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jun 2019 01:47:36 -0700 X-ExtLoop1: 1 Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 03 Jun 2019 01:47:36 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 3 Jun 2019 01:47:36 -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.408.0; Mon, 3 Jun 2019 01:47:36 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.192]) with mapi id 14.03.0415.000; Mon, 3 Jun 2019 16:47:34 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [PATCH V1] framework/project_dpdk: add RTE config when build dpdk and apps Thread-Index: AQHVFFfClTwDJ7/rEUmgar/Zlnig/6aJqDkA Date: Mon, 3 Jun 2019 08:47:33 +0000 Message-ID: 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" Hi, lijuan >From the suggest from zhaoyan, I have change the method of this patch , set= the env variable when reconnet session, not in the build function. And I will use the patch "add set_env_variable when reconnet dut" instead o= f it. So you can ignore it. -----Original Message----- From: Ma, LihongX=20 Sent: Monday, May 27, 2019 7:25 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [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