From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 71193C3C6 for ; Fri, 23 Oct 2015 07:27:20 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 22 Oct 2015 22:27:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,185,1444719600"; d="scan'208";a="670065148" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 22 Oct 2015 22:27:20 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 22 Oct 2015 22:27:19 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 22 Oct 2015 22:27:18 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.204]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.106]) with mapi id 14.03.0248.002; Fri, 23 Oct 2015 13:27:16 +0800 From: "Tang, HaifengX" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] fix test script get the output from the pmd driver correctly if the command inputs aren't from tester side Thread-Index: AQHRDVFXy4gRjRaUDEy1cf2EL5wKA554jC8w Date: Fri, 23 Oct 2015 05:27:16 +0000 Message-ID: References: <1445576351-34309-1-git-send-email-haifengx.tang@intel.com> <5629C21C.3010900@intel.com> In-Reply-To: <5629C21C.3010900@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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:27:21 -0000 Ok, I will change the code, and submit it again. thanks -----Original Message----- From: Liu, Yong=20 Sent: Friday, October 23, 2015 1:14 PM To: Tang, HaifengX; dts@dpdk.org Subject: Re: [dts] [PATCH] fix test script get the output from the pmd driv= er correctly if the command inputs aren't from tester side Haifeng, There's one function get_session_output defined in crb.py can match the req= uirement. 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=20 > 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 =3D self.dut.send_expect("stop", "testpmd>") > + out =3D self.dut.session.get_session_before() > + self.dut.send_expect("stop", "testpmd>") > =20 > if(self.nic in ["kawela", "niantic", "fortville_eagle", "fortvi= lle_spirit", "fortville_spirit_single"]): > if ("fwd" =3D=3D self.fdir_type):