test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jun Dong <junx.dong@intel.com>
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	[thread overview]
Message-ID: <20220311020022.6678-4-junx.dong@intel.com> (raw)
In-Reply-To: <20220311020022.6678-1-junx.dong@intel.com>

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 <junx.dong@intel.com>
---
 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


  parent reply	other threads:[~2022-03-11  2:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-11  2:00 [dts] [V1 0/5] " Jun Dong
2022-03-11  2:00 ` [dts] [V1 1/5] framework/ixia_network/ixnet: " Jun Dong
2022-03-11  2:00 ` [dts] [V1 2/5] framework/pktgen_ixia_network: " Jun Dong
2022-03-11  2:00 ` Jun Dong [this message]
2022-03-11  2:00 ` [dts] [V1 4/5] tests/TestSuite_mtu_update: " Jun Dong
2022-03-11  2:00 ` [dts] [V1 5/5] tests/TestSuite_stats_checks: " Jun Dong
2022-03-11  5:14   ` 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20220311020022.6678-4-junx.dong@intel.com \
    --to=junx.dong@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --cc=ohilyard@iol.unh.edu \
    --cc=qingx.sun@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).