[V1] framework/*: fix pylama errors
Checks
Context |
Check |
Description |
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
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(-)
Comments
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
@@ -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
@@ -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