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 06E7B58C3 for ; Mon, 1 Jun 2015 10:59:53 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 01 Jun 2015 01:59:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,531,1427785200"; d="scan'208";a="579878529" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by orsmga003.jf.intel.com with ESMTP; 01 Jun 2015 01:59:51 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 1 Jun 2015 16:59:50 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.23]) by SHSMSX101.ccr.corp.intel.com ([10.239.4.153]) with mapi id 14.03.0224.002; Mon, 1 Jun 2015 16:59:48 +0800 From: "Liu, Yong" To: "Fu, JingguoX" , "dts@dpdk.org" Thread-Topic: [dts] [DTS][PATCH 1/3] ieee1588: fix sutie for framework update Thread-Index: AQHQl5ucwu32+GmHGEO0jLGXnLmbVp2XYxDg Date: Mon, 1 Jun 2015 08:59:47 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10E3669E@SHSMSX103.ccr.corp.intel.com> References: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com> In-Reply-To: <1432634747-20565-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 1/3] ieee1588: fix sutie for framework update 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: Mon, 01 Jun 2015 08:59:54 -0000 Thanks, applied in 1.1 branch. Please take care of spell, should be "suite= " not "sutie". > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jingguo Fu > Sent: Tuesday, May 26, 2015 6:06 PM > To: dts@dpdk.org > Cc: Fu, JingguoX > Subject: [dts] [DTS][PATCH 1/3] ieee1588: fix sutie for framework update >=20 > Signed-off-by: Jingguo Fu > --- > tests/TestSuite_ieee1588.py | 17 +++++------------ > 1 file changed, 5 insertions(+), 12 deletions(-) >=20 > diff --git a/tests/TestSuite_ieee1588.py b/tests/TestSuite_ieee1588.py > index bf48188..6ee95e4 100644 > --- a/tests/TestSuite_ieee1588.py > +++ b/tests/TestSuite_ieee1588.py > @@ -36,22 +36,16 @@ Test support of IEEE1588 Precise Time Protocol. >=20 > import dts > import time > - > - > from test_case import TestCase > from pmd_output import PmdOutput >=20 > - > class TestIeee1588(TestCase): >=20 > def set_up_all(self): > """ > Run at the start of each test suite. > - > - > IEEE1588 Prerequisites > """ > - > dutPorts =3D self.dut.get_ports() > self.verify(len(dutPorts) > 0, "No ports found for " + self.nic) >=20 > @@ -64,7 +58,7 @@ class TestIeee1588(TestCase): > self.dut.build_install_dpdk(self.target) >=20 > self.pmdout =3D PmdOutput(self.dut) > - self.pmdout.start_testpmd("all") > + self.pmdout.start_testpmd("Default") >=20 > def set_up(self): > """ > @@ -76,10 +70,11 @@ class TestIeee1588(TestCase): > """ > IEEE1588 Enable test case. > """ > - > self.dut.send_expect("set fwd ieee1588", "testpmd> ") > - self.dut.send_expect("start", ">", 5) # Waiting for 'testpmd> ' > Fails due to log messages, "Received non PTP packet", in the output > - time.sleep(1) # Allow the output from the "start" command to > finish before looking for a regexp in expect > + # Waiting for 'testpmd> ' Fails due to log messages, "Received > non PTP packet", in the output > + self.dut.send_expect("start", ">", 5) > + # Allow the output from the "start" command to finish before > looking for a regexp in expect > + time.sleep(1) >=20 > # use the first port on that self.nic > dutPorts =3D self.dut.get_ports() > @@ -92,7 +87,6 @@ class TestIeee1588(TestCase): >=20 > # this is the output of sniff > # [ type=3D0x88f7 |>] > - > self.tester.scapy_foreground() > self.tester.scapy_append('nutmac=3D"01:1b:19:00:00:00"') >=20 > self.tester.scapy_append('sendp([Ether(dst=3Dnutmac,type=3D0x88f7)/"\\x00= \\x02 > "], iface=3D"%s")' % itf) > @@ -120,7 +114,6 @@ class TestIeee1588(TestCase): > """ > IEEE1588 Disable test case. > """ > - > self.dut.send_expect("stop", "testpmd> ") > time.sleep(3) >=20 > -- > 2.1.0