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 60BD7A3168 for ; Thu, 17 Oct 2019 03:55:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 527D31DFEC; Thu, 17 Oct 2019 03:55:50 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 463B41DFE7 for ; Thu, 17 Oct 2019 03:55:49 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2019 18:55:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,306,1566889200"; d="scan'208";a="202245053" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 16 Oct 2019 18:55:48 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 16 Oct 2019 18:55:48 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 16 Oct 2019 18:55:48 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.166]) by SHSMSX154.ccr.corp.intel.com ([10.239.6.54]) with mapi id 14.03.0439.000; Thu, 17 Oct 2019 09:55:46 +0800 From: "Wang, Yinan" 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+CI3fJeAebUqt3UWhvVKBXqdeFBXQ Date: Thu, 17 Oct 2019 01:55:45 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMThhNmRkNzctNDhiZi00NWYwLTlkYTktYzNmNjc5Mjc2NGZiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibmsyMUtlQVVYdUd0bytibkVpSGQ4blEzdWwrNXcrYnBtOGZBeTRGbXpDQWFNT2V4N29acmJkXC9lWUVpUTg4alIifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" 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" Acked-by: Wang, Yinan > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: 2019=1B$BG/=1B(B10=1B$B7n=1B(B16=1B$BF|=1B(B 7:32 > 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