From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 3080C95B4 for ; Sat, 14 Nov 2015 10:26:52 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 14 Nov 2015 01:26:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,292,1444719600"; d="scan'208";a="819743548" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga001.jf.intel.com with ESMTP; 14 Nov 2015 01:26:50 -0800 From: yongjie To: dts@dpdk.org Date: Sat, 14 Nov 2015 17:22:19 +0800 Message-Id: <1447492939-12553-1-git-send-email-yongjiex.gu@intel.com> X-Mailer: git-send-email 1.9.3 Cc: Gu yongjie Subject: [dts] [PATCH] fix scatter format and time bug 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: Sat, 14 Nov 2015 09:26:52 -0000 From: Gu yongjie Signed-off-by: Gu yongjie --- tests/TestSuite_scatter.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_scatter.py b/tests/TestSuite_scatter.py index 001f0b4..3a761c4 100644 --- a/tests/TestSuite_scatter.py +++ b/tests/TestSuite_scatter.py @@ -82,16 +82,17 @@ class TestScatter(TestCase): self.tester.send_expect("ifconfig %s mtu 9000" % sintf, "#") self.tester.send_expect("ifconfig %s mtu 9000" % rintf, "#") - self.start_tcpdump(rintf) + self.start_tcpdump(rintf) pktlen = pktsize - 18 padding = pktlen - 20 self.tester.scapy_append( 'sendp([Ether(src="%s",dst="%s")/IP(len=%s)/Raw(load="\x50"*%s)], iface="%s")' % (smac, dmac,pktlen, padding, sintf)) + time.sleep(3) self.tester.scapy_execute() time.sleep(5) #wait for scapy capture subprocess exit - res = self.get_tcpdump_packet() + res = self.get_tcpdump_packet() self.tester.send_expect("ifconfig %s mtu 1500" % sintf, "#") self.tester.send_expect("ifconfig %s mtu 1500" % sintf, "#") return res @@ -122,7 +123,7 @@ class TestScatter(TestCase): for offset in [-1, 0, 1, 4, 5]: ret = self.scatter_pktgen_send_packet( dutPorts[0], dutPorts[1], self.mbsize + offset) - self.verify("5050 5050 5050 5050 5050 5050 5050" in ret, "packet receive error") + self.verify("5050 5050 5050 5050 5050 5050 5050" in ret, "packet receive error") self.dut.send_expect("stop", "testpmd> ") self.dut.send_expect("quit", "# ", 30) -- 1.7.4.4