From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 6C0048DA9 for ; Thu, 5 Nov 2015 02:44:29 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 04 Nov 2015 17:44:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,245,1444719600"; d="scan'208";a="812076315" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga001.jf.intel.com with ESMTP; 04 Nov 2015 17:44:27 -0800 From: "xu,huilong" To: dts@dpdk.org Date: Thu, 5 Nov 2015 09:40:01 +0800 Message-Id: <1446687601-50652-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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 01:44:32 -0000 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, "#") -- 1.9.3