From patchwork Mon Dec 6 12:04:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Juraj_Linke=C5=A1?= X-Patchwork-Id: 104922 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C45B1A034F; Mon, 6 Dec 2021 13:04:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B9CBD4013F; Mon, 6 Dec 2021 13:04:06 +0100 (CET) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 0A1F340040 for ; Mon, 6 Dec 2021 13:04:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id 708F9134296; Mon, 6 Dec 2021 13:04:05 +0100 (CET) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oU3Zcgjxz46J; Mon, 6 Dec 2021 13:04:03 +0100 (CET) Received: from service-node1.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id 38678130F7E; Mon, 6 Dec 2021 13:04:03 +0100 (CET) From: =?utf-8?q?Juraj_Linke=C5=A1?= To: lijuan.tu@intel.com, ohilyard@iol.unh.edu Cc: dts@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= Subject: [PATCH v1] framework/config: fix pylama errors Date: Mon, 6 Dec 2021 13:04:02 +0100 Message-Id: <1638792242-1615-1-git-send-email-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 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/config.py:303: [E] E1133 Non-iterable value sections is used in an iterating context [pylint] framework/config.py:405: [E] E1133 Non-iterable value sections is used in an iterating context [pylint] framework/config.py:446: [E] E1133 Non-iterable value sections is used in an iterating context [pylint] framework/config.py:500: [E] E0602 Undefined variable 'IxiaConf' [pylint] - remove usage of nonexistent class Signed-off-by: Juraj Linkeš --- Lijuan, please add additional people to review if needed. --- framework/config.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework/config.py b/framework/config.py index d0e63bfd..3d7c4936 100644 --- a/framework/config.py +++ b/framework/config.py @@ -75,7 +75,7 @@ class UserConf(): def get_sections(self): if self.conf is None: - return None + return [] return self.conf.sections() @@ -496,10 +496,6 @@ if __name__ == '__main__': crbsconf = CrbsConf(CRBCONF) print(crbsconf.load_crbs_config()) - # example for ixia configuration file - ixiaconf = IxiaConf(IXIACONF) - print(ixiaconf.load_ixia_config()) - # example for suite configure file suiteconf = SuiteConf("suite_sample") print(suiteconf.load_case_config("case1"))