From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id D439F326B for ; Mon, 7 Aug 2017 11:57:58 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1CA0E80D; Mon, 7 Aug 2017 02:57:58 -0700 (PDT) Received: from localhost.localdomain.com (unknown [10.169.40.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A6B663F540; Mon, 7 Aug 2017 02:57:57 -0700 (PDT) From: Herbert Guan To: dts@dpdk.org Cc: Herbert Guan Date: Mon, 7 Aug 2017 17:57:46 +0800 Message-Id: <1502099866-4795-1-git-send-email-herbert.guan@arm.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] tests/short_live: fix issues in wating for link status up 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: Mon, 07 Aug 2017 09:57:59 -0000 fixes: 78212a000d ("tests/short_live: fixes the result parsing issue") For fiber links, no "LSC event" is expected. So "testpmd>" is the correct string to check. Change to use sleep(5) for non-fiber links to wait for the links up. Signed-off-by: Herbert Guan --- tests/TestSuite_short_live.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py index 61e99c8..d153975 100644 --- a/tests/TestSuite_short_live.py +++ b/tests/TestSuite_short_live.py @@ -125,7 +125,8 @@ class TestShortLiveApp(TestCase): Basic rx/tx forwarding test """ #dpdk start - self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i --portmask=0x3" % self.target, "LSC event", 120) + self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i --portmask=0x3" % self.target, "testpmd>", 120) + time.sleep(5) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") self.dut.send_expect("start", "testpmd>") -- 1.8.3.1