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

* Re: [dts] [PATCH V1] framework/project_dpdk: add RTE config when build dpdk and apps
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Wu, ChangqingX @ 2019-05-27  8:19 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

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


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

* Re: [dts] [PATCH V1] framework/project_dpdk: add RTE config when build dpdk and apps
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Ma, LihongX @ 2019-06-03  8:47 UTC (permalink / raw)
  To: 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 of it.
So you can ignore it.

-----Original Message-----
From: Ma, LihongX 
Sent: Monday, May 27, 2019 7:25 AM
To: dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
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 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).