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 44F2EA0093; Fri, 11 Mar 2022 03:00:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E41641152; Fri, 11 Mar 2022 03:00:57 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 9E9064113E for ; Fri, 11 Mar 2022 03:00:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646964055; x=1678500055; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PE8a9U4UV4qv6N/BW+bZ/d7O3XKK+8hTIAt2MUuxc68=; b=ZNnYSpeWU2w8/99mSCyDli/Qf0SRb+lZPooSZ4HyN9qwucIRlyH+jweH fFaGIxnLBL9MuqwewSvpTYrHrG9PCCVYM/zFd5309i6+ErW9ALx0e8azG ++Pw69qVLCiyzwhm5HIfSVKIVrifQELhe9CIRHrPgT7PhZC/CfJwhdc7D 6uYWHEf2eii9+2OEy/xWfALLEl+fqWNdfugrvQIAy4OoBXq45Yx68u+MS 89ivCs31sAzyO6OQndfKsIsFOBKGC0MULN+pTcELdgQw1ikB8m6WEecfy YCrmyeFIZ8pwAF4mxsUZXzF//zznHy98tM28+L6CxfW7sJjTIxDIgRHn9 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="255421900" X-IronPort-AV: E=Sophos;i="5.90,172,1643702400"; d="scan'208";a="255421900" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 18:00:36 -0800 X-IronPort-AV: E=Sophos;i="5.90,172,1643702400"; d="scan'208";a="633256431" Received: from shwdenpg197.ccr.corp.intel.com ([10.253.109.70]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 18:00:34 -0800 From: Jun Dong To: dts@dpdk.org, ohilyard@iol.unh.edu Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com Subject: [dts] [V1 3/5] framework/tester: fix pylama errors Date: Fri, 11 Mar 2022 10:00:19 +0800 Message-Id: <20220311020022.6678-4-junx.dong@intel.com> X-Mailer: git-send-email 2.33.1.windows.1 In-Reply-To: <20220311020022.6678-1-junx.dong@intel.com> References: <20220311020022.6678-1-junx.dong@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Pylama found the following errors: framework/tester.py:249: [E] E1136 Value 'self.duts' is unsubscriptable [pylint] framework/tester.py:261: [E] E1133 Non-iterable value self.duts is used in an iterating context [pylint] Signed-off-by: Jun Dong --- framework/tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/tester.py b/framework/tester.py index ff3ecb61..8380ccf8 100644 --- a/framework/tester.py +++ b/framework/tester.py @@ -85,7 +85,7 @@ class Tester(Crb): check_crb_python_version(self) self.bgProcIsRunning = False - self.duts = None + self.duts = [] self.inBg = 0 self.scapyCmds = [] self.bgCmds = [] -- 2.25.1