test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/project_dpdk: add RTE config when build dpdk and apps
@ 2019-05-26 23:24 lihong
  2019-05-27  8:19 ` Wu, ChangqingX
  2019-06-03  8:47 ` Ma, LihongX
  0 siblings, 2 replies; 3+ messages in thread
From: lihong @ 2019-05-26 23:24 UTC (permalink / raw)
  To: dts; +Cc: lihong

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-03  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-26 23:24 [dts] [PATCH V1] framework/project_dpdk: add RTE config when build dpdk and apps lihong
2019-05-27  8:19 ` Wu, ChangqingX
2019-06-03  8:47 ` Ma, LihongX

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).