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 EB7E68E89 for ; Thu, 12 Nov 2015 03:25:35 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 11 Nov 2015 18:25:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,279,1444719600"; d="scan'208";a="848446468" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga002.jf.intel.com with ESMTP; 11 Nov 2015 18:25:33 -0800 From: Lijuan Tu To: dts@dpdk.org Date: Thu, 12 Nov 2015 10:21:02 +0800 Message-Id: <1447294862-15611-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH] nvgre: 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:25:36 -0000 Signed-off-by: Lijuan Tu --- tests/TestSuite_nvgre.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index 954259d..86609ab 100644 --- a/tests/TestSuite_nvgre.py +++ b/tests/TestSuite_nvgre.py @@ -452,9 +452,10 @@ class TestNvgre(TestCase): config.outer_mac_dst = self.dut_rx_port_mac config.create_pcap() # time.sleep(10) + self.dut.send_expect("start", "testpmd>", 10) config.send_pcap() # check whether detect nvgre type - out = self.dut.send_expect("start", "testpmd>", 10) + out = self.dut.get_session_output() print out self.verify(config.packet_type() in out, "Nvgre Packet not detected") out = self.dut.send_expect("show port stats all", "testpmd>", 10) @@ -497,8 +498,9 @@ class TestNvgre(TestCase): # send nvgre packet config.create_pcap() + self.dut.send_expect("start", "testpmd>", 10) config.send_pcap() - out = self.dut.send_expect("start", "testpmd>", 10) + out = self.dut.get_session_output() print out queue = -1 pattern = re.compile("- Receive queue=0x(\d)") -- 1.9.1