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 9D74AA0540; Mon, 20 Jul 2020 08:55:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 938AD1BEDE; Mon, 20 Jul 2020 08:55:16 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 652D01BEBF for ; Mon, 20 Jul 2020 08:55:15 +0200 (CEST) IronPort-SDR: kQmQ7FowhQ4UWMvOUyAkpql5l66V4Va/8HgcXZi+P9/F7uekc87I5LyXJM+PkHeLXm3cAiCxxi tYkUDAs0Dd7A== X-IronPort-AV: E=McAfee;i="6000,8403,9687"; a="137346110" X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="137346110" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2020 23:55:14 -0700 IronPort-SDR: pHRMEcCEAiRcBCAoEOazHu1PkLAvjfzNo4+6PYJ0VoDlo8YyqSY+zwn2L2dVVEfm3589rEvJ1C QmgxHNYIC0Og== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="317929748" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 19 Jul 2020 23:55:14 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jul 2020 23:55:14 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jul 2020 23:55:14 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.250]) with mapi id 14.03.0439.000; Mon, 20 Jul 2020 14:55:11 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of dev keywords Thread-Index: AQHWUQH6gMHlZCNPNUypjJEooHj+EKkQI18Q Date: Mon, 20 Jul 2020 06:55:11 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC82115@SHSMSX101.ccr.corp.intel.com> References: <20200703061641.25823-1-weix.xie@intel.com> In-Reply-To: <20200703061641.25823-1-weix.xie@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-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/vm_hotplug:check vf pci info instead of dev keywords 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 On Behalf Of Xie wei > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B3=1B$BF|=1B(B 14:17 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1] tests/vm_hotplug:check vf pci info instead of d= ev > keywords >=20 > check vf pci info. >=20 > Signed-off-by: Xie wei > --- > tests/TestSuite_vm_hotplug.py | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_vm_hotplug.py b/tests/TestSuite_vm_hotplug.p= y > index 2dfd835..f403d40 100644 > --- a/tests/TestSuite_vm_hotplug.py > +++ b/tests/TestSuite_vm_hotplug.py > @@ -279,14 +279,7 @@ class TestVmHotplug(TestCase): >=20 > def check_vf_device(self, has_device=3DTrue, device=3D1): > time.sleep(1) > - sign =3D 'Connection' > - lis1 =3D ['fortville_spirit', 'fortville_eagle', 'sagepond', 'tw= inpond', 'sageville'] > - lis2 =3D ['fortpark_TLV', 'fortville_25g',"fortpark_BASE-T", "ca= rlsville"] > - if self.nic in lis1: > - sign =3D 'Ethernet' > - elif self.nic in lis2: > - sign =3D 'Device' > - out =3D self.vm_session.send_expect('./usertools/dpdk-devbind.py= -s | > grep %s' % sign, '#') > + out =3D self.vm_session.send_expect('./usertools/dpdk-devbind.py > + -s', '#') > time.sleep(2) > if has_device: > self.verify(self.vf_pci0 in out, 'no vf device') > -- > 2.17.1