From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 720705A8B for ; Thu, 4 Jun 2015 05:31:30 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 03 Jun 2015 20:31:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,549,1427785200"; d="scan'208";a="502472649" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by FMSMGA003.fm.intel.com with ESMTP; 03 Jun 2015 20:31:28 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 4 Jun 2015 11:31:23 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.23]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.180]) with mapi id 14.03.0224.002; Thu, 4 Jun 2015 11:31:21 +0800 From: "Liu, Yong" To: "Fu, JingguoX" , "dts@dpdk.org" Thread-Topic: [dts] [DTS][PATCH] fix dts bugs for 1.1 branch Thread-Index: AQHQndzaHenm6jvMGUK5sCIrasj7xZ2bsg+A Date: Thu, 4 Jun 2015 03:31:22 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10E37F3F@SHSMSX103.ccr.corp.intel.com> References: <1433322465-29746-1-git-send-email-jingguox.fu@intel.com> In-Reply-To: <1433322465-29746-1-git-send-email-jingguox.fu@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 Cc: "Fu, JingguoX" Subject: Re: [dts] [DTS][PATCH] fix dts bugs for 1.1 branch 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: Thu, 04 Jun 2015 03:31:31 -0000 Thanks, applied in 1.1 branch. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jingguo Fu > Sent: Wednesday, June 03, 2015 5:08 PM > To: dts@dpdk.org > Cc: Fu, JingguoX > Subject: [dts] [DTS][PATCH] fix dts bugs for 1.1 branch >=20 >=20 > Signed-off-by: Jingguo Fu > --- > framework/ssh_pexpect.py | 2 +- > tests/TestSuite_hello_world.py | 7 ++----- > tests/TestSuite_jumboframes.py | 5 ++--- > tests/TestSuite_shutdown_api.py | 2 +- > 4 files changed, 6 insertions(+), 10 deletions(-) >=20 > diff --git a/framework/ssh_pexpect.py b/framework/ssh_pexpect.py > index fa2b542..a474500 100644 > --- a/framework/ssh_pexpect.py > +++ b/framework/ssh_pexpect.py > @@ -30,7 +30,7 @@ class SSHPexpect(object): > else: > self.session.login(self.host, self.username, > self.password, original_prompt=3D'[$#= >]') > - self.send_expect('stty -echo', '# ', timeout=3D2) > + self.send_expect('stty -echo', '# ', timeout=3D2) > except Exception, e: > print RED(e) > if getattr(self, 'port', None): > diff --git a/tests/TestSuite_hello_world.py > b/tests/TestSuite_hello_world.py > index 985d8b5..255a8aa 100644 > --- a/tests/TestSuite_hello_world.py > +++ b/tests/TestSuite_hello_world.py > @@ -37,7 +37,6 @@ Test HelloWorld example. > import dts > from test_case import TestCase >=20 > - > class TestHelloWorld(TestCase): >=20 > def set_up_all(self): > @@ -68,8 +67,7 @@ class TestHelloWorld(TestCase): > cores =3D self.dut.get_core_list('1S/1C/1T') > coreMask =3D dts.create_mask(cores) > cmdline =3D "./examples/helloworld/build/app/helloworld -n 1 -c = " + > coreMask > - out =3D self.dut.send_expect(cmdline, "# ", 3) > - > + out =3D self.dut.send_expect(cmdline, "# ", 30) > self.verify("hello from core %s" % cores[0] in out, "EAL not > started on core%s" % cores[0]) >=20 > def test_hello_world_all_cores(self): > @@ -83,8 +81,7 @@ class TestHelloWorld(TestCase): > coreMask =3D dts.create_mask(cores) >=20 > cmdline =3D "./examples/helloworld/build/app/helloworld -n 1 -c = " + > coreMask > - out =3D self.dut.send_expect(cmdline, "# ", 5) > - > + out =3D self.dut.send_expect(cmdline, "# ", 50) > for i in range(len(cores)): > self.verify("hello from core %s" % cores[i] in out, "EAL not > started on core%s" % cores[i]) >=20 > diff --git a/tests/TestSuite_jumboframes.py > b/tests/TestSuite_jumboframes.py > index 3add9ea..4f34c13 100644 > --- a/tests/TestSuite_jumboframes.py > +++ b/tests/TestSuite_jumboframes.py > @@ -37,7 +37,6 @@ Test the support of Jumbo Frames by Poll Mode Drivers > import dts > import re > from time import sleep > - > from test_case import TestCase > from pmd_output import PmdOutput >=20 > @@ -97,8 +96,8 @@ class TestJumboframes(TestCase): > self.verify(p0tx_pkts =3D=3D p1rx_pkts and p0tx_bytes =3D=3D= pktsize > and p1rx_bytes =3D=3D pktsize, > "packet pass assert error") > else: > - self.verify(p0tx_pkts =3D=3D p1rx_pkts and (p1rx_err =3D=3D = 1 or > p1rx_pkts =3D=3D 0), > - "packet drop assert error") > + #self.verify(p0tx_pkts =3D=3D p1rx_pkts and (p1rx_err =3D=3D= 1 or > p1rx_pkts =3D=3D 0), > + self.verify(p1rx_err =3D=3D 1 or p0tx_pkts =3D=3D 0, "packet= drop > assert error") > return out >=20 > # > diff --git a/tests/TestSuite_shutdown_api.py > b/tests/TestSuite_shutdown_api.py > index fd38ae8..0706303 100644 > --- a/tests/TestSuite_shutdown_api.py > +++ b/tests/TestSuite_shutdown_api.py > @@ -13,7 +13,7 @@ import re > import os > from test_case import TestCase > from pmd_output import PmdOutput > -from setting import HEADER_SIZE > +from settings import HEADER_SIZE >=20 > # > # > -- > 1.8.1.4