[dts] [PATCH V1] define build_time in freebsd when compile dpdk

xu,huilong huilongx.xu at intel.com
Mon Mar 6 03:13:18 CET 2017


Signed-off-by: xu,huilong <huilongx.xu at intel.com>
---
 framework/project_dpdk.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 7a4e4f7..3b91dd6 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -207,11 +207,11 @@ class DPDKdut(Dut):
         self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
         self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#")
         self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#")
-
+        build_time = 120
         # compile
         out = self.send_expect("make -j %d install T=%s CC=gcc48" % (self.number_of_cores,
                                                                      target),
-                               "#", 120)
+                               "#", build_time)
         #should not check test app compile status, because if test compile fail,
         #all unit test can't exec, but others case will exec sucessfull 
         self.send_expect("make -j -C test/ CC=gcc48", "# ", build_time)
@@ -224,7 +224,7 @@ class DPDKdut(Dut):
             self.logger.error("ERROR - try without '-j'")
             # if Error try to execute make without -j option
             out = self.send_expect("make install T=%s CC=gcc48" % target,
-                                   "#", 120)
+                                   "#", build_time)
 
         assert ("Error" not in out), "Compilation error..."
         assert ("No rule to make" not in out), "No rule to make error..."
-- 
1.9.3



More information about the dts mailing list