From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A5CBA052E; Mon, 9 Mar 2020 01:43:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 717FE1BEA9; Mon, 9 Mar 2020 01:43:39 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 581AA1BEA9 for ; Mon, 9 Mar 2020 01:43:36 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2020 17:43:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,530,1574150400"; d="scan'208";a="414635964" Received: from unknown (HELO dpdk-xinfengx-dut.sh.intel.com) ([10.67.117.16]) by orsmga005.jf.intel.com with ESMTP; 08 Mar 2020 17:43:35 -0700 From: xinfengx To: dts@dpdk.org Cc: xinfengx Date: Sun, 8 Mar 2020 23:23:09 +0800 Message-Id: <20200308152309.46637-2-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200308152309.46637-1-xinfengx.zhao@intel.com> References: <20200308152309.46637-1-xinfengx.zhao@intel.com> Subject: [dts] [PATCH 2/2] framework: replace unnecessary send_command with send_expect 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: xinfengx --- framework/project_dpdk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 4c57e81..9ac3b1a 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -451,8 +451,8 @@ class DPDKdut(Dut): """ Get RTE configuration from config/defconfig_*. """ - out = self.session.send_command("cat config/defconfig_%s | sed '/^#/d' | sed '/^\s*$/d'" - % self.target, 1) + out = self.send_expect("cat config/defconfig_%s | sed '/^#/d' | sed '/^\s*$/d'" + % self.target, "# ") def_rte_config = re.findall(config+'=(\S+)', out) if def_rte_config: -- 2.17.1