From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 69F35A0A02; Fri, 26 Mar 2021 04:29:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4195A140E12; Fri, 26 Mar 2021 04:29:30 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 1D9C5140E10 for ; Fri, 26 Mar 2021 04:29:28 +0100 (CET) IronPort-SDR: xtOndYZAKiDrYh25PPjdeNkSSbH4S/P5hg9iknsFdYEfC79vIU0DJdCiKPnQe50+dTZfDBPljl OS4ZROgAwh1A== X-IronPort-AV: E=McAfee;i="6000,8403,9934"; a="171050567" X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="171050567" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2021 20:29:27 -0700 IronPort-SDR: 0ST4yAG27jtcZrhABGh61ZTHmoAL/YJmivsC1CmVbBJ6+y+rmUlTev7o7qeMoRawGgH8sNI9bY p+rmy99C16SQ== X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="453337922" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2021 20:29:26 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: lijuan.tu@intel.com, Haiyang Zhao Date: Fri, 26 Mar 2021 11:20:23 +0800 Message-Id: <20210326032023.26113-1-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] framework/crb: optimize code X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" when the param dut_arch in conf/crbs.cfg not exist, dts will generate a keyerror exception and terminate the test, but this param could not be set actually. Signed-off-by: Haiyang Zhao --- framework/crb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/crb.py b/framework/crb.py index cd29b8e3..e7c1cc1c 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -666,7 +666,7 @@ class Crb(object): if self.crb['bypass core0'] and core == '0' and socket == '0': self.logger.info("Core0 bypassed") continue - if self.crb['dut arch'] == "arm64": + if self.crb.get('dut arch') == "arm64": self.cores.append( {'thread': thread, 'socket': node, 'core': coremap[core]}) else: -- 2.17.1