test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Wu, ChangqingX" <changqingx.wu@intel.com>
To: "Ma, LihongX" <lihongx.ma@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Ma, LihongX" <lihongx.ma@intel.com>
Subject: Re: [dts] [PATCH V1] framework/project_dpdk: add RTE config when build	dpdk and apps
Date: Mon, 27 May 2019 08:19:46 +0000	[thread overview]
Message-ID: <7F81DD3887C58F49A6B2EFEC3C28E22E0B6E5EA1@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1558913074-15746-1-git-send-email-lihongx.ma@intel.com>

Tested-by: Wu, ChangqingX <changqingx.wu@intel.com>

-----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 <lihongx.ma@intel.com>
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 dpdk and apps.

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 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


  reply	other threads:[~2019-05-27  8:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-26 23:24 lihong
2019-05-27  8:19 ` Wu, ChangqingX [this message]
2019-06-03  8:47 ` Ma, LihongX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7F81DD3887C58F49A6B2EFEC3C28E22E0B6E5EA1@SHSMSX101.ccr.corp.intel.com \
    --to=changqingx.wu@intel.com \
    --cc=dts@dpdk.org \
    --cc=lihongx.ma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).