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 D9681A055A; Thu, 27 Feb 2020 02:33:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D1DD31BFAB; Thu, 27 Feb 2020 02:33:08 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 93A0C1BF8D for ; Thu, 27 Feb 2020 02:33:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 17:33:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,490,1574150400"; d="scan'208";a="226937219" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga007.jf.intel.com with ESMTP; 26 Feb 2020 17:33:06 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Feb 2020 17:32:46 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 27 Feb 2020 09:32:44 +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; Thu, 27 Feb 2020 09:32:44 +0800 From: "Ma, LihongX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] framework/crb: add check key of pktgen in crb.cfg Thread-Index: AQHV7Q1v5jFbqPlp8k6Ip92uvYm+pqguQM9A Date: Thu, 27 Feb 2020 01:32:44 +0000 Message-ID: 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: 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] 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" Tested-by: ma,lihong Regards, Ma,lihong -----Original Message----- From: Ma, LihongX=20 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.cfg Signed-off-by: lihong --- framework/crb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/crb.py b/framework/crb.py index 2ac197e..2bf99e1 100= 644 --- 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_p= refix is None: conf_inst =3D PktgenConf('trex') conf_info =3D conf_inst.load_pktgen_config() -- 2.7.4