From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D6E59C3C6 for ; Fri, 23 Oct 2015 07:29:15 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 22 Oct 2015 22:29:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,185,1444719600"; d="scan'208";a="670065911" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 22 Oct 2015 22:29:15 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 22 Oct 2015 22:29:14 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 22 Oct 2015 22:29:13 -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:29:12 +0800 From: "Liu, Yong" To: "Tang, HaifengX" , "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: AQHRDVOJ4DoPN1MTGkeWL/HWDuJKz554jJjA Date: Fri, 23 Oct 2015 05:29:12 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10F324E9@SHSMSX103.ccr.corp.intel.com> References: <1445577728-34518-1-git-send-email-haifengx.tang@intel.com> In-Reply-To: <1445577728-34518-1-git-send-email-haifengx.tang@intel.com> Accept-Language: zh-CN, 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:29:16 -0000 Haifeng, please remove your debug code. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of haifeng > Sent: Friday, October 23, 2015 1:22 PM > To: dts@dpdk.org > Subject: [dts] [PATCH] fix test script get the output from the pmd driver > correctly if the command inputs aren't from tester side >=20 > Signed-off-by: haifeng > --- > tests/TestSuite_fdir.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py > index f186eb2..8c2f6fd 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.session.get_session_before() > + out =3D self.dut.get_session_output() > + print out > self.dut.send_expect("stop", "testpmd>") >=20 > if(self.nic in ["kawela", "niantic", "fortville_eagle", > "fortville_spirit", "fortville_spirit_single"]): > -- > 1.9.3