From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A1B8D8E56 for ; Wed, 4 Nov 2015 08:00:23 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 03 Nov 2015 23:00:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,241,1444719600"; d="scan'208";a="842180417" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga002.jf.intel.com with ESMTP; 03 Nov 2015 23:00:09 -0800 Message-ID: <5639AD55.9080501@intel.com> Date: Wed, 04 Nov 2015 15:01: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: <1446619498-39230-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1446619498-39230-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] 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: Wed, 04 Nov 2015 07:00:24 -0000 Hi Huilong, This issue look like that need wait for few seconds before scapy write the write value. My question is that should we enlarge the timeout value in function scapy_execute()? On 11/04/2015 02:44 PM, xu,huilong wrote: > form log, it looks the cat result.txt failed, so add a sleep for python close file. > > 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, "#")