From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 899AA8E8A for ; Thu, 12 Nov 2015 03:38:49 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 11 Nov 2015 18:38:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,279,1444719600"; d="scan'208";a="834948887" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga001.fm.intel.com with ESMTP; 11 Nov 2015 18:38:34 -0800 From: Lijuan Tu To: dts@dpdk.org Date: Thu, 12 Nov 2015 10:34:02 +0800 Message-Id: <1447295642-15736-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH]vxlan: Start packet forwarding before tester send packet to dut. 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, 12 Nov 2015 02:38:49 -0000 Signed-off-by: Lijuan Tu --- tests/TestSuite_vxlan.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 5c994c8..cefe817 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -391,10 +391,11 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # be same config.outer_mac_dst = self.dut_port_mac config.create_pcap() + self.dut.send_expect("start", "testpmd>", 10) config.send_pcap(self.tester_iface) # check whether detect vxlan type - out = self.dut.send_expect("start", "testpmd>", 10) + out = self.dut.get_session_output() self.verify(config.packet_type() in out, "Vxlan Packet not detected") out = self.dut.send_expect("stop", "testpmd>", 10) self.dut.send_expect("quit", "#", 10) @@ -595,8 +596,9 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # send vxlan packet config.create_pcap() + self.dut.send_expect("start", "testpmd>", 10) config.send_pcap(self.tester_iface) - out = self.dut.send_expect("start", "testpmd>", 10) + out = self.dut.get_session_output() queue = -1 pattern = re.compile("- Receive queue=0x(\d)") -- 1.9.1