[dts] [PATCH] fix error output of hugepage config not existed

Yong Liu yong.liu at intel.com
Fri Sep 18 16:31:39 CEST 2015


From: Marvin Liu <yong.liu at intel.com>

After DPDK process existed, hugepage config file will be removed.
When check this file, will shown error message that this file not existed.

Signed-off-by: Marvin Liu <yong.liu at intel.com>
---
 framework/crb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/crb.py b/framework/crb.py
index c10f791..5434531 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -347,7 +347,7 @@ class Crb(object):
 
         cmd = 'lsof -Fp /var/run/.rte_hugepage_info'
         out = self.alt_session.session.send_expect(cmd, "# ", 10)
-        if len(out):
+        if len(out) and "No such file or directory" not in out:
             self.logger.warning("There are some dpdk process not free hugepage")
             self.logger.warning("**************************************")
             self.logger.warning(out)
-- 
1.9.3



More information about the dts mailing list