[V1,1/2] framework/project_dpdk: drop the detailed errors when complie failed

Message ID 20201113100605.20669-2-haiyangx.zhao@intel.com (mailing list archive)
State Accepted
Headers
Series framework: fix error msg too long cause saving result failed |

Commit Message

Zhao, HaiyangX Nov. 13, 2020, 10:06 a.m. UTC
  the detailed compiled info is too long and will be saved
into log file, so there's no need to throw it in assert exception.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/project_dpdk.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
  

Patch

diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index a41b3df..fbbc78d 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -314,7 +314,7 @@  class DPDKdut(Dut):
         assert ("FAILED" not in out), "meson setup failed ..."
 
         out = self.send_expect("ninja -C %s -j %d" % (target, self.number_of_cores), "# ", build_time)
-        assert ("FAILED" not in out), "ninja complie failed ...\r\n %s" % out
+        assert ("FAILED" not in out), "ninja complie failed ..."
 
         # copy kmod file to the folder same as make
         out = self.send_expect("find ./%s/kernel/ -name *.ko" % target, "# ", verify=True)
@@ -555,9 +555,9 @@  class DPDKdut(Dut):
         else:
             example = '/'.join(folder_info[folder_info.index('examples')+1:])
         out = self.send_expect("meson configure -Dexamples=%s %s" % (example, self.target), "# ")
-        assert ("FAILED" not in out), "Compilation error... \r\n %s" % out
+        assert ("FAILED" not in out), "Compilation error..."
         out = self.send_expect("ninja -C %s" % self.target, "# ", timeout)
-        assert ("FAILED" not in out), "Compilation error... \r\n %s" % out
+        assert ("FAILED" not in out), "Compilation error..."
 
         # verify the app build in the config path
         if example != 'all':