From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (unknown [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 90CC56A80 for ; Tue, 27 Oct 2015 07:08:15 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from root@r-aa-dragon7.rdmz.labs.mlnx) with ESMTPS (AES256-SHA encrypted); 27 Oct 2015 08:08:00 +0200 Received: from r-aa-dragon7.rdmz.labs.mlnx (r-aa-dragon7.rdmz.labs.mlnx [10.224.14.90]) by filer01.rdmz.labs.mlnx (8.13.8/8.13.8) with ESMTP id t9R68063010162; Tue, 27 Oct 2015 08:08:00 +0200 Received: from r-aa-dragon7.rdmz.labs.mlnx (localhost [127.0.0.1]) by r-aa-dragon7.rdmz.labs.mlnx (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t9R680SK031906; Tue, 27 Oct 2015 08:08:00 +0200 Received: (from root@localhost) by r-aa-dragon7.rdmz.labs.mlnx (8.14.4/8.14.4/Submit) id t9R680OI031898; Tue, 27 Oct 2015 08:08:00 +0200 From: Raslan Darawsheh To: dts@dpdk.org Date: Tue, 27 Oct 2015 08:07:56 +0200 Message-Id: <1445926076-31279-7-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445926076-31279-1-git-send-email-rasland@mellanox.com> References: <1445926076-31279-1-git-send-email-rasland@mellanox.com> Cc: rdarawsheh@asaltech.com Subject: [dts] [PATCH] fix queue start/stop 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: Tue, 27 Oct 2015 06:08:16 -0000 From: "xu,huilong" sometime print can't get received package info, used self.dut.get_session_output() replace self.dut.send_expect("\n", "testpmd>") get received package info Signed-off-by: xu,huilong --- tests/TestSuite_queue_start_stop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index 83504ab..f59333c 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -164,7 +164,7 @@ class TestQueueStartStop(TestCase): self.dut.send_expect("port 1 txq 0 stop", "testpmd>") self.dut.send_expect("start", "testpmd>") self.check_forwarding([0, 1], self.nic, received=False) - out = self.dut.send_expect("\n", "testpmd>") + out = self.dut.get_session_output() except Exception, e: raise IOError("queue start/stop forward failure: %s" % e) -- 1.9.1