From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A2107A09E4; Thu, 21 Jan 2021 08:23:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A7CB140EBC; Thu, 21 Jan 2021 08:23:12 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id AE8E8140EA9 for ; Thu, 21 Jan 2021 08:23:11 +0100 (CET) IronPort-SDR: JpwUchG6BrNsTkSKDKlvfNTin+zdEwjBnirgR1Tf/Gv+x1JfWc//1+koaI4fgMJS2VrqxFw2+Z RqvTTNrlZZdg== X-IronPort-AV: E=McAfee;i="6000,8403,9870"; a="240769776" X-IronPort-AV: E=Sophos;i="5.79,363,1602572400"; d="scan'208";a="240769776" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2021 23:23:10 -0800 IronPort-SDR: 9QysSD/20ZTwttCEKD4jWG8fPQiDVLwv5h1SAoqNDmZmy76vtmuSOwC8OXIwiznguZ/dIx4EPa 0qNHjCzh0OzA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,363,1602572400"; d="scan'208";a="351366139" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga003.jf.intel.com with ESMTP; 20 Jan 2021 23:23:10 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 20 Jan 2021 23:23:06 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 21 Jan 2021 15:23:04 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Thu, 21 Jan 2021 15:23:04 +0800 From: "Tu, Lijuan" To: "Ling, WeiX" , "dts@dpdk.org" CC: "Ling, WeiX" Thread-Topic: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd Thread-Index: AQHW6kJlAnZZce6vd0GOtk6pDiwziKoxtySA Date: Thu, 21 Jan 2021 07:23:04 +0000 Message-ID: <7ca522b16742423a838f478adefa7107@intel.com> References: <20210114144805.1899603-1-weix.ling@intel.com> In-Reply-To: <20210114144805.1899603-1-weix.ling@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" >=20 > Add -a option to use expect pci to start testpmd. >=20 > Signed-off-by: Ling Wei > --- > tests/TestSuite_vhost_virtio_user_interrupt.py | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py > b/tests/TestSuite_vhost_virtio_user_interrupt.py > index 9f89c460..be02ee52 100644 > --- a/tests/TestSuite_vhost_virtio_user_interrupt.py > +++ b/tests/TestSuite_vhost_virtio_user_interrupt.py > @@ -127,17 +127,21 @@ class TestVirtioUserInterrupt(TestCase): > testcmd =3D self.app_testpmd_path + " " > vdev =3D ["net_vhost0,iface=3Dvhost-net,queues=3D1,client=3D0"] > para =3D " -- -i --rxq=3D1 --txq=3D1" > + allow_pci =3D [self.pci_info] > + if dmas: > + for item in self.used_cbdma: > + allow_pci.append(item) > if len(pci) =3D=3D 0: > if dmas: > vdev =3D ["net_vhost0,iface=3Dvhost-net,queues=3D1,dmas= =3D[%s]" % dmas] > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost, vdevs=3Dvdev= ) > + eal_params =3D > + self.dut.create_eal_parameters(cores=3Dself.core_list_vhost, > + ports=3Dallow_pci, vdevs=3Dvdev) > else: > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost, > ports=3D[self.pci_info], vdevs=3Dvdev) > + eal_params =3D > + self.dut.create_eal_parameters(cores=3Dself.core_list_vhost, > + ports=3Dallow_pci, vdevs=3Dvdev) > else: > if dmas: > vdev =3D ["net_vhost0,iface=3Dvhost- > net,queues=3D1,client=3D0,dmas=3D[%s]" % dmas] > para =3D " -- -i" > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost, ports=3Dpci, > prefix=3D'vhost', vdevs=3Dvdev) > + eal_params =3D > + self.dut.create_eal_parameters(cores=3Dself.core_list_vhost, > + ports=3Dallow_pci, prefix=3D'vhost', vdevs=3Dvdev) > else: > eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost, prefix=3D'vh= ost', > no_pci=3DTrue, vdevs=3Dvdev) > cmd_vhost_user =3D testcmd + eal_params + para @@ -160,6 +164,7 = @@ > class TestVirtioUserInterrupt(TestCase): > self.virtio.send_expect("start", "testpmd>", 20) >=20 > def check_interrupt_log(self, status): > + time.sleep(3) > out =3D self.l3fwd.get_session_before() Prefer self.l3fwd.get_session_before(timeout=3D3) to sleep > if status =3D=3D "waked up": > info =3D "lcore %s is waked up from rx interrupt on port 0 q= ueue 0" > -- > 2.25.1