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 D1809A2EFC for ; Fri, 20 Sep 2019 08:21:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A7A0F1E876; Fri, 20 Sep 2019 08:21:54 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id ACD241E874 for ; Fri, 20 Sep 2019 08:21:52 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 23:21:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,527,1559545200"; d="scan'208";a="217555706" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 19 Sep 2019 23:21:51 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:21:51 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:21:50 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.89]) with mapi id 14.03.0439.000; Fri, 20 Sep 2019 14:21:48 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Wang, Yinan" , "Ma, LihongX" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] tests/pvp_share_lib: fix condition check sequence issue Thread-Index: AQHVaT8hwWh61F1UOEqP43aFsM0OO6c0JNVA Date: Fri, 20 Sep 2019 06:21:48 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB24B3E@SHSMSX101.ccr.corp.intel.com> References: <20190912075421.19400-1-yufengx.mo@intel.com> <20190912075421.19400-2-yufengx.mo@intel.com> In-Reply-To: <20190912075421.19400-2-yufengx.mo@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTViZTQ1M2EtMzhlNy00MDc3LWEyMGMtZDRiNTUyNDA4OTM2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUXE4RlJSRUtKSnBXVkxOcmw0XC92RTFIXC9DR0FONGlwTHUrdmpMZjRseDdLZXVFeGFiY1dVKzllTjRmM0xOR3dQIn0= 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 1/1] tests/pvp_share_lib: fix condition check sequence issue 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 yufengmx > Sent: Thursday, September 12, 2019 3:54 PM > To: dts@dpdk.org; Wang, Yinan ; Ma, LihongX > > Cc: Mo, YufengX > Subject: [dts] [PATCH V1 1/1] tests/pvp_share_lib: fix condition check > sequence issue >=20 >=20 > fix condition check sequence issue. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_pvp_share_lib.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_share_lib.py > b/tests/TestSuite_pvp_share_lib.py > index f117fd5..77c1704 100644 > --- a/tests/TestSuite_pvp_share_lib.py > +++ b/tests/TestSuite_pvp_share_lib.py > @@ -46,12 +46,12 @@ class TestPVPShareLib(TestCase): > """ > Run at the start of each test suite. > """ > - self.core_config =3D "1S/4C/1T" > self.dut_ports =3D self.dut.get_ports() > + self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > + self.core_config =3D "1S/4C/1T" > self.ports_socket =3D self.dut.get_numa_id(self.dut_ports[0]) > self.core_list =3D self.dut.get_core_list( > self.core_config, socket=3Dself.ports_socket) > - self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > self.verify(len(self.core_list) >=3D 4, > "There has not enought cores to test this suite %s" = % > self.suite_name) > -- > 2.21.0