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 3F40CA056D; Tue, 3 Mar 2020 06:55:58 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EFF411BFF0; Tue, 3 Mar 2020 06:55:57 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 8D4342BB8 for ; Tue, 3 Mar 2020 06:55:56 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 21:55:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="239934325" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 02 Mar 2020 21:55:51 -0800 Received: from fmsmsx163.amr.corp.intel.com (10.18.125.72) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:54:46 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx163.amr.corp.intel.com (10.18.125.72) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:54:46 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.144]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 13:54:44 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/crb: add check key of pktgen in crb.cfg Thread-Index: AQHV7Q2EYlMlPJFThEmjj/NM5eL/Gqg2ZleQ Date: Tue, 3 Mar 2020 05:54:43 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE909A@SHSMSX101.ccr.corp.intel.com> References: <1582740059-13036-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1582740059-13036-1-git-send-email-lihongx.ma@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 V1] framework/crb: add check key of pktgen in crb.cfg 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 lihong > Sent: Thursday, February 27, 2020 2:01 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] framework/crb: add check key of pktgen in crb.c= fg >=20 > Signed-off-by: lihong > --- > framework/crb.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/framework/crb.py b/framework/crb.py index 2ac197e..2bf99e1 > 100644 > --- a/framework/crb.py > +++ b/framework/crb.py > @@ -472,7 +472,7 @@ class Crb(object): > if the tester and dut on same server > and pktgen is trex, do not kill the process > """ > - if self.crb['pktgen'].lower() =3D=3D 'trex': > + if 'pktgen' in self.crb and (self.crb['pktgen'] is not None) and > (self.crb['pktgen'].lower() =3D=3D 'trex'): > if self.crb['IP'] =3D=3D self.crb['tester IP'] and self.trex= _prefix is None: > conf_inst =3D PktgenConf('trex') > conf_info =3D conf_inst.load_pktgen_config() > -- > 2.7.4