From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1F778A3168 for ; Wed, 16 Oct 2019 08:57:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 09C701E8C3; Wed, 16 Oct 2019 08:57:12 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 660091D445 for ; Wed, 16 Oct 2019 08:57:10 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 23:57:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,302,1566889200"; d="scan'208";a="198865772" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.203]) by orsmga003.jf.intel.com with ESMTP; 15 Oct 2019 23:57:08 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Wed, 16 Oct 2019 07:32:07 +0800 Message-Id: <1571182327-28711-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/vhost_multi_queue_qemu: add wait_link_status_up before send pkt 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: lihong --- tests/TestSuite_vhost_multi_queue_qemu.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/TestSuite_vhost_multi_queue_qemu.py b/tests/TestSuite_vhost_multi_queue_qemu.py index d31eb57..f31c132 100644 --- a/tests/TestSuite_vhost_multi_queue_qemu.py +++ b/tests/TestSuite_vhost_multi_queue_qemu.py @@ -256,6 +256,8 @@ class TestVhostMultiQueueQemu(TestCase): self.vm_dut.send_expect("start", "testpmd>") self.dut.send_expect("clear port stats all", "testpmd> ", 120) + res = self.pmd_out.wait_link_status_up('all', timeout = 15) + self.verify(res is True, 'There has port link is down') self.send_and_verify("vhost queue > virtio queue") self.vm_dut.send_expect("stop", "testpmd>", 20) @@ -298,6 +300,8 @@ class TestVhostMultiQueueQemu(TestCase): self.vm_dut.send_expect("set fwd mac", "testpmd>", 20) self.vm_dut.send_expect("start", "testpmd>") self.dut.send_expect("clear port stats all", "testpmd> ", 120) + res = self.pmd_out.wait_link_status_up('all', timeout = 15) + self.verify(res is True, 'There has port link is down') self.send_and_verify("vhost queue < virtio queue") -- 2.7.4