* [V1] framework/*: fix pylama errors
@ 2022-05-06 8:25 Jun Dong
2022-05-09 7:40 ` lijuan.tu
0 siblings, 1 reply; 2+ messages in thread
From: Jun Dong @ 2022-05-06 8:25 UTC (permalink / raw)
To: dts; +Cc: lijuan.tu, qingx.sun, junx.dong
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [V1] framework/*: fix pylama errors
2022-05-06 8:25 [V1] framework/*: fix pylama errors Jun Dong
@ 2022-05-09 7:40 ` lijuan.tu
0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2022-05-09 7:40 UTC (permalink / raw)
To: dts, Jun Dong; +Cc: lijuan.tu, qingx.sun, junx.dong
On Fri, 6 May 2022 16:25:31 +0800, Jun Dong <junx.dong@intel.com> wrote:
> 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>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-09 7:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 8:25 [V1] framework/*: fix pylama errors Jun Dong
2022-05-09 7:40 ` lijuan.tu
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 \
dts@dpdk.org
public-inbox-index dts
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.dpdk.org/inbox.dpdk.dts
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git