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 5B395A046B; Thu, 9 Jan 2020 09:34:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 32A991DBD4; Thu, 9 Jan 2020 09:34:35 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 962C01DBCE for ; Thu, 9 Jan 2020 09:34:33 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 00:34:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,413,1571727600"; d="scan'208";a="272052937" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 09 Jan 2020 00:34:32 -0800 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 9 Jan 2020 00:34:32 -0800 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 9 Jan 2020 00:34:31 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 9 Jan 2020 00:34:31 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by shsmsx102.ccr.corp.intel.com ([169.254.2.202]) with mapi id 14.03.0439.000; Thu, 9 Jan 2020 16:34:30 +0800 From: "Tu, Lijuan" To: "Zeng, XiaoxiaoX" , "dts@dpdk.org" CC: "Zeng, XiaoxiaoX" Thread-Topic: [dts] [PATCH V2] tests/port_control:add if else to suit cvl Thread-Index: AQHVxpdElBO1t4Oyp0CWW85QZimPsafiAgPg Date: Thu, 9 Jan 2020 08:34:30 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA4CDE@SHSMSX101.ccr.corp.intel.com> References: <1578538118-234221-1-git-send-email-xiaoxiaox.zeng@intel.com> In-Reply-To: <1578538118-234221-1-git-send-email-xiaoxiaox.zeng@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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2] tests/port_control:add if else to suit cvl 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 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Zeng Xiaoxiao > Sent: Thursday, January 9, 2020 10:49 AM > To: dts@dpdk.org > Cc: Zeng, XiaoxiaoX > Subject: [dts] [PATCH V2] tests/port_control:add if else to suit cvl >=20 > Signed-off-by: Zeng Xiaoxiao > --- > tests/TestSuite_port_control.py | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_contr= ol.py > index a458add..f006ddb 100644 > --- a/tests/TestSuite_port_control.py > +++ b/tests/TestSuite_port_control.py > @@ -166,12 +166,18 @@ class TestPortControl(TestCase): > terminal.execute_cmd("stop") > terminal.execute_cmd("port stop all") > ret =3D terminal.get_port_link_status(self.port_id_0) > - self.verify(ret =3D=3D "down", "port not down!") > + if self.nic.startswith('columbiaville'): > + self.verify(ret !=3D "", "port status error!") > + else: > + self.verify(ret =3D=3D "down", "port not down!") >=20 > def reset_pmd_port(self, terminal): > terminal.execute_cmd("port reset all") > ret =3D terminal.get_port_link_status(self.port_id_0) > - self.verify(ret =3D=3D "down", "port reset fail!") > + if self.nic.startswith('columbiaville'): > + self.verify(ret !=3D "", "port status error!") > + else: > + self.verify(ret =3D=3D "down", "port not down!") >=20 > def close_pmd_port(self, terminal): > terminal.execute_cmd("port close all") > -- > 1.8.3.1