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 3EBEF5A56 for ; Thu, 5 Nov 2015 08:06:15 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 04 Nov 2015 23:06:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,246,1444719600"; d="scan'208";a="843586669" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga002.fm.intel.com with ESMTP; 04 Nov 2015 23:06:13 -0800 Message-ID: <563B003D.9020507@intel.com> Date: Thu, 05 Nov 2015 15:07:41 +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: "xu,huilong" , dts@dpdk.org References: <1446687601-50652-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1446687601-50652-1-git-send-email-huilongx.xu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V2] try fix scatter case failed 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, 05 Nov 2015 07:06:15 -0000 Applied with few comments added. On 11/05/2015 09:40 AM, xu,huilong wrote: > add a sleep time for scapy process exit > > Signed-off-by: xu,huilong > --- > tests/TestSuite_scatter.py | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/TestSuite_scatter.py b/tests/TestSuite_scatter.py > index 1bec2c8..7a49b53 100644 > --- a/tests/TestSuite_scatter.py > +++ b/tests/TestSuite_scatter.py > @@ -36,6 +36,7 @@ Test Scattered Packets. > import dts > from test_case import TestCase > from pmd_output import PmdOutput > +import time > # > # > # Test class. > @@ -85,6 +86,7 @@ class TestScatter(TestCase): > self.tester.scapy_append( > 'sendp([Ether(src="%s",dst="%s")/IP(len=%s)/Raw(load="\x50"*%s)], iface="%s")' % (smac, dmac,pktlen, padding, sintf)) > self.tester.scapy_execute() > + time.sleep(5) > res = self.tester.scapy_get_result() > self.tester.send_expect("ifconfig %s mtu 1500" % sintf, "#") > self.tester.send_expect("ifconfig %s mtu 1500" % sintf, "#")