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 1B1371DB1 for ; Wed, 4 Nov 2015 07:49:22 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 03 Nov 2015 22:49:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,241,1444719600"; d="scan'208";a="842690892" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga002.fm.intel.com with ESMTP; 03 Nov 2015 22:49:21 -0800 From: "xu,huilong" To: dts@dpdk.org Date: Wed, 4 Nov 2015 14:44:58 +0800 Message-Id: <1446619498-39230-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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 06:49:23 -0000 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, "#") -- 1.9.3