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 9D2FEA328D for ; Tue, 22 Oct 2019 11:09:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 942FB1BE98; Tue, 22 Oct 2019 11:09:58 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id EC6821BE95 for ; Tue, 22 Oct 2019 11:09:56 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 02:09:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="222745681" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 22 Oct 2019 02:09:56 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 02:09:55 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 02:09:55 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by shsmsx102.ccr.corp.intel.com ([169.254.2.176]) with mapi id 14.03.0439.000; Tue, 22 Oct 2019 17:09:53 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/vhost_multi_queue_qemu: add wait_link_status_up before send pkt Thread-Index: AQHVg+7+iu+ZLwZoP0Gc2NPLk4/vXqdmaQhA Date: Tue, 22 Oct 2019 09:09:53 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB44F20@SHSMSX101.ccr.corp.intel.com> References: <1571182327-28711-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1571182327-28711-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWY1M2UwZDYtZmNkMi00YTYwLTkxMzYtNDFjN2Y2NjgzNDBlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiclpDUFZjblBlaDZONGJDanlyWGhBSTYzWW5QWTlHc0Zkck1PWjJVMXZXS3NwZjZwXC9qZ09HZDVHYTJSbXBqeXMifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Wednesday, October 16, 2019 7:32 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] tests/vhost_multi_queue_qemu: add > wait_link_status_up before send pkt >=20 > Signed-off-by: lihong > --- > tests/TestSuite_vhost_multi_queue_qemu.py | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > 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>") >=20 > self.dut.send_expect("clear port stats all", "testpmd> ", 120) > + res =3D self.pmd_out.wait_link_status_up('all', timeout =3D 15) > + self.verify(res is True, 'There has port link is down') > self.send_and_verify("vhost queue > virtio queue") >=20 > 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 =3D self.pmd_out.wait_link_status_up('all', timeout =3D 15) > + self.verify(res is True, 'There has port link is down') >=20 > self.send_and_verify("vhost queue < virtio queue") >=20 > -- > 2.7.4