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 2FC0EADA7 for ; Fri, 23 Oct 2015 07:43:52 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 22 Oct 2015 22:43:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,185,1444719600"; d="scan'208";a="800860237" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga001.jf.intel.com with ESMTP; 22 Oct 2015 22:43:17 -0700 From: haifeng To: dts@dpdk.org Date: Fri, 23 Oct 2015 13:38:55 +0800 Message-Id: <1445578735-35120-1-git-send-email-haifengx.tang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] fix test script get the output from the pmd driver correctly if the command inputs aren't from tester side 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: Fri, 23 Oct 2015 05:43:52 -0000 Signed-off-by: haifeng --- tests/TestSuite_fdir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py index 1372674..9113fb0 100644 --- a/tests/TestSuite_fdir.py +++ b/tests/TestSuite_fdir.py @@ -99,7 +99,8 @@ class TestFdir(TestCase, IxiaPacketGenerator): self.dut.send_expect("start", "testpmd>") self.tester.scapy_execute() time.sleep(.5) - out = self.dut.send_expect("stop", "testpmd>") + out = self.dut.get_session_output() + self.dut.send_expect("stop", "testpmd>") if(self.nic in ["kawela", "niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"]): if ("fwd" == self.fdir_type): -- 1.9.3