test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yong Liu <yong.liu@intel.com>
To: dts@dpdk.org
Subject: [dts] [PATCH] fix error output of hugepage config not existed
Date: Fri, 18 Sep 2015 22:31:39 +0800	[thread overview]
Message-ID: <1442586699-23379-1-git-send-email-yong.liu@intel.com> (raw)

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

                 reply	other threads:[~2015-09-18 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1442586699-23379-1-git-send-email-yong.liu@intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).