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 BB97DC350 for ; Fri, 23 Oct 2015 07:11:47 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 22 Oct 2015 22:11:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,185,1444719600"; d="scan'208";a="800842192" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga001.jf.intel.com with ESMTP; 22 Oct 2015 22:11:45 -0700 Message-ID: <5629C21C.3010900@intel.com> Date: Fri, 23 Oct 2015 13:14:04 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: haifeng , dts@dpdk.org References: <1445576351-34309-1-git-send-email-haifengx.tang@intel.com> In-Reply-To: <1445576351-34309-1-git-send-email-haifengx.tang@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH] fix test script get the output from the pmd driver correctly if the command inputs aren't from tester side 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, 23 Oct 2015 05:11:48 -0000 Haifeng, There's one function get_session_output defined in crb.py can match the requirement. Please do not call low level APIs directly. On 10/23/2015 12:59 PM, haifeng wrote: > Signed-off-by: haifeng > --- > tests/TestSuite_fdir.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py > index 1372674..f186eb2 100644 > --- a/tests/TestSuite_fdir.py > +++ b/tests/TestSuite_fdir.py > @@ -99,7 +99,8 @@ class TestFdir(TestCase, IxiaPacketGenerator): > self.dut.send_expect("start", "testpmd>") > self.tester.scapy_execute() > time.sleep(.5) > - out = self.dut.send_expect("stop", "testpmd>") > + out = self.dut.session.get_session_before() > + self.dut.send_expect("stop", "testpmd>") > > if(self.nic in ["kawela", "niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]): > if ("fwd" == self.fdir_type):