[dts] [PATCH V1 1/2] framework/project_dpdk: drop the detailed errors when complie failed
Haiyang Zhao
haiyangx.zhao at intel.com
Fri Nov 13 11:06:04 CET 2020
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 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 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':
--
2.17.1
More information about the dts
mailing list