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 E0526A2EF9 for ; Mon, 16 Sep 2019 03:40:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C3D981C12E; Mon, 16 Sep 2019 03:40:25 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0842B1C12D for ; Mon, 16 Sep 2019 03:40:23 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Sep 2019 18:40:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,489,1559545200"; d="scan'208";a="361385967" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga005.jf.intel.com with ESMTP; 15 Sep 2019 18:40:22 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 15 Sep 2019 18:40:22 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 15 Sep 2019 18:40:22 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.146]) with mapi id 14.03.0439.000; Mon, 16 Sep 2019 09:40:21 +0800 From: "Mo, YufengX" To: "dts@dpdk.org" CC: "Wang, Yinan" , "Ma, LihongX" Thread-Topic: [dts][PATCH V1 1/1] tests/pvp_share_lib: fix condition check sequence issue Thread-Index: AQHVaT8XUkA1qg5gBkKsnSZ33pgqH6ctjLbg Date: Mon, 16 Sep 2019 01:40:20 +0000 Message-ID: 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: 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" tested by yufengx.mo@intel.com > -----Original Message----- > From: Mo, YufengX > 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 seq= uence 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