test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jun Dong <junx.dong@intel.com>
To: dts@dpdk.org
Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com
Subject: [V1] framework/*: fix pylama errors
Date: Fri,  6 May 2022 16:25:31 +0800	[thread overview]
Message-ID: <20220506082531.2009-1-junx.dong@intel.com> (raw)

Pylama found the following errors:
framework/virt_dut.py:87: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint]
framework/virt_dut.py:88: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint]
framework/virt_dut.py:119: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint]
framework/virt_dut.py:124: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint]
framework/virt_dut.py:356: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint]

Signed-off-by: Jun Dong <junx.dong@intel.com>
---
 framework/virt_base.py | 1 -
 framework/virt_dut.py  | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/virt_base.py b/framework/virt_base.py
index d4af8b98..93f77e5e 100644
--- a/framework/virt_base.py
+++ b/framework/virt_base.py
@@ -475,7 +475,6 @@ class VirtBase(object):
 
         vm_dut.nic_type = "any"
         vm_dut.tester = self.host_dut.tester
-        vm_dut.host_dut = self.host_dut
         vm_dut.host_session = self.host_session
         vm_dut.init_log()
         vm_dut.migration_vm = self.migration_vm
diff --git a/framework/virt_dut.py b/framework/virt_dut.py
index 369abacf..45b495a0 100644
--- a/framework/virt_dut.py
+++ b/framework/virt_dut.py
@@ -65,6 +65,7 @@ class VirtDut(DPDKdut):
         )
         self.vm_name = vm_name
         self.hyper = hyper
+        self.host_dut = hyper.host_dut
         self.cpu_topo = cpu_topo
         self.migration_vm = False
 
-- 
2.33.1.windows.1


             reply	other threads:[~2022-05-06  8:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06  8:25 Jun Dong [this message]
2022-05-09  7:40 ` lijuan.tu

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=20220506082531.2009-1-junx.dong@intel.com \
    --to=junx.dong@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --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).