From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id F3A403990 for ; Fri, 22 Apr 2016 03:32:13 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 21 Apr 2016 18:32:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,515,1455004800"; d="scan'208";a="963951846" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 21 Apr 2016 18:32:13 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u3M1WBSf006576; Fri, 22 Apr 2016 09:32:11 +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 u3M1W9Sf025106; Fri, 22 Apr 2016 09:32:11 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u3M1W8Xn025102; Fri, 22 Apr 2016 09:32:08 +0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Fri, 22 Apr 2016 09:32:00 +0800 Message-Id: <1461288721-25049-4-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1461288721-25049-1-git-send-email-yong.liu@intel.com> References: <1461288721-25049-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH v1 3/4] framework pmd_output: add function to retrieve testpmd output 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, 22 Apr 2016 01:32:14 -0000 Signed-off-by: Marvin Liu diff --git a/framework/pmd_output.py b/framework/pmd_output.py index df8db12..f8e6088 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -122,6 +122,9 @@ class PmdOutput(): return self.dut.send_expect('%s' % pmd_cmd, expected, timeout=timeout, alt_session=alt_session) + def get_output(self, timeout=1): + return self.dut.get_session_output(timeout=timeout) + def get_value_from_string(self, key_str, regx_str, string): """ Get some values from the given string by the regular expression. -- 1.9.3