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 905A9A0AC5 for ; Mon, 27 May 2019 08:45:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D946F94; Mon, 27 May 2019 08:45:08 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 44188A49 for ; Mon, 27 May 2019 08:45:07 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 May 2019 23:45:06 -0700 X-ExtLoop1: 1 Received: from ubuntu.sh.intel.com ([10.67.118.150]) by fmsmga001.fm.intel.com with ESMTP; 26 May 2019 23:45:05 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Mon, 27 May 2019 07:24:34 +0800 Message-Id: <1558913074-15746-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [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" 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 dpdk 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 6035c68..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=" + target, "#") + self.send_expect("export RTE_SDK=`pwd`", "#") build_install_dpdk = getattr(self, 'build_install_dpdk_%s' % self.get_os_type()) build_install_dpdk(target, extra_options) @@ -351,6 +353,8 @@ class DPDKdut(Dut): """ Build dpdk sample applications. """ + self.send_expect("export RTE_TARGET=" + self.target, "#") + self.send_expect("export RTE_SDK=`pwd`", "#") build_dpdk_apps = getattr(self, 'build_dpdk_apps_%s' % self.get_os_type()) return build_dpdk_apps(folder, extra_options) -- 2.7.4