From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 12907C34C for ; Fri, 23 Oct 2015 07:03:36 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 22 Oct 2015 22:03:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,185,1444719600"; d="scan'208";a="800837523" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga001.jf.intel.com with ESMTP; 22 Oct 2015 22:03:35 -0700 From: haifeng To: dts@dpdk.org Date: Fri, 23 Oct 2015 12:59:11 +0800 Message-Id: <1445576351-34309-1-git-send-email-haifengx.tang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH] 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:03:37 -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..f186eb2 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.session.get_session_before() + 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