test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] fix error output of hugepage config not existed
@ 2015-09-18 14:31 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-09-18 14:31 UTC (permalink / raw)
  To: dts

From: Marvin Liu <yong.liu@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@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-18 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-18 14:31 [dts] [PATCH] fix error output of hugepage config not existed Yong Liu

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).