From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8F86A2C72 for ; Fri, 18 Sep 2015 16:31:47 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 18 Sep 2015 07:31:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,553,1437462000"; d="scan'208";a="564272493" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 18 Sep 2015 07:31:46 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t8IEVhoJ026685; Fri, 18 Sep 2015 22:31:43 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t8IEVfbA023415; Fri, 18 Sep 2015 22:31:43 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t8IEVeDw023411; Fri, 18 Sep 2015 22:31:40 +0800 From: Yong Liu To: dts@dpdk.org Date: Fri, 18 Sep 2015 22:31:39 +0800 Message-Id: <1442586699-23379-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] fix error output of hugepage config not existed X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2015 14:31:48 -0000 From: Marvin Liu 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 --- 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