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 3BBD9A04B6; Mon, 12 Oct 2020 08:54:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0395B1D609; Mon, 12 Oct 2020 08:54:39 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6F1E81D5E0 for ; Mon, 12 Oct 2020 08:54:37 +0200 (CEST) IronPort-SDR: 2X629CwwB/jaPj0ce7sat5vnS+Ki5M/CBt5muxAbbiRVMzFLZKV91wr1rXlB8faOPVLdSWa0Gu ++/mmRuHmzgA== X-IronPort-AV: E=McAfee;i="6000,8403,9771"; a="250392341" X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="250392341" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2020 23:54:32 -0700 IronPort-SDR: enJ11Drt3EwVmVn4UgPpzW21aelR4wknvowvHNChyoUxIgjYwysEMIKDPIWsHLlOxbyCx26FF/ QAEWVVKp0YMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="344756727" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga004.fm.intel.com with ESMTP; 11 Oct 2020 23:54:31 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) 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; Sun, 11 Oct 2020 23:54:29 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 12 Oct 2020 14:54:27 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Mon, 12 Oct 2020 14:54:27 +0800 From: "Chen, LingliX" To: "Ma, LihongX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_shutdown_api:fixed differences brought about by speed units Thread-Index: AQHWoGJjjobUZzH1okyKSjfZyhG0m6mThLXg Date: Mon, 12 Oct 2020 06:54:27 +0000 Message-ID: References: <20200928071329.8897-1-linglix.chen@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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/TestSuite_shutdown_api:fixed differences brought about by speed units 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" if change Link speed is1000 or 10000,the DUT's Link speed is 1 Gbps or 10 G= bps, if change Link speed is100, the DUT's Link speed is 100 Mbps > -----Original Message----- > From: Ma, LihongX > Sent: Monday, October 12, 2020 2:39 PM > To: Chen, LingliX ; dts@dpdk.org > Cc: Chen, LingliX > Subject: RE: [dts] [PATCH V1] tests/TestSuite_shutdown_api:fixed > differences brought about by speed units >=20 >=20 >=20 > > -----Original Message----- > > From: dts On Behalf Of Chen Linglix > > Sent: Monday, September 28, 2020 3:13 PM > > To: dts@dpdk.org > > Cc: Chen, LingliX > > Subject: [dts] [PATCH V1] tests/TestSuite_shutdown_api:fixed > > differences brought about by speed units > > > > From: chenlinglix > > > > fixed differences brought about by speed units > > > > Signed-off-by: chenlinglix > > - self.verify("Link speed: %s Mbps" % config[0] in out, > > - "Wrong speed reported by the dut") > > + if config[0] in['1000', '10000']: > > + num =3Dint(int(config[0])/1000) > > + self.verify("Link speed: %d Gbps" % num in out, > > + "Wrong speed reported by the dut") > > + else: > > + self.verify("Link speed: %s Mbps" % config[0] in o= ut, > > + "Wrong speed reported by the dut") >=20 > Hi, lingli > Can you write clearly why do we need to do this change ? >=20 >=20 > Regards, > Ma,lihong