test suite reviews and discussions
 help / color / mirror / Atom feed
From: Juraj Linkeš <juraj.linkes@pantheon.tech>
To: lijuan.tu@intel.com, ohilyard@iol.unh.edu
Cc: dts@dpdk.org, Juraj Linkeš <juraj.linkes@pantheon.tech>
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> (raw)

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š <juraj.linkes@pantheon.tech>
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)
-    # example for ixia configuration file
-    ixiaconf = IxiaConf(IXIACONF)
-    print(ixiaconf.load_ixia_config())
     # example for suite configure file
     suiteconf = SuiteConf("suite_sample")

             reply	other threads:[~2021-12-06 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-06 12:04 Juraj Linkeš [this message]
2022-01-14  8:04 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1638792242-1615-1-git-send-email-juraj.linkes@pantheon.tech \
    --to=juraj.linkes@pantheon.tech \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --cc=ohilyard@iol.unh.edu \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git