[V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
warning
|
SKIPPED
|
Commit Message
When config hostname in conf/cfbs.cfg, eg: dpdk-dut, the self.dut.get_ip_address()
will get the dpdk-dut, so modify get_host_ip(self.addr) to get the IP
address to connect the VM, eg: 192.168.1.1.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
tests/TestSuite_basic_4k_pages_cbdma.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
> -----Original Message-----
> From: Wei Ling <weix.ling@intel.com>
> Sent: Monday, March 13, 2023 11:13 AM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP
> address when config hostname in crbs.cfg
>
> When config hostname in conf/cfbs.cfg, eg: dpdk-dut, the
> self.dut.get_ip_address() will get the dpdk-dut, so modify
> get_host_ip(self.addr) to get the IP address to connect the VM, eg:
> 192.168.1.1.
>
> Signed-off-by: Wei Ling <weix.ling@intel.com>
> ---
Acked-by: Xingguang He<xingguang.he@intel.com>
On Mon, 13 Mar 2023 11:12:40 +0800, Wei Ling <weix.ling@intel.com> wrote:
> When config hostname in conf/cfbs.cfg, eg: dpdk-dut, the self.dut.get_ip_address()
> will get the dpdk-dut, so modify get_host_ip(self.addr) to get the IP
> address to connect the VM, eg: 192.168.1.1.
>
> Signed-off-by: Wei Ling <weix.ling@intel.com>
Applied, thanks
@@ -181,7 +181,7 @@ class TestBasic4kPagesCbdma(TestCase):
def connect_vm0(self):
self.vm0 = QEMUKvm(self.dut, "vm0", self.suite_name)
self.vm0.net_type = "hostfwd"
- self.vm0.hostfwd_addr = "%s:6000" % self.dut.get_ip_address()
+ self.vm0.hostfwd_addr = "%s:6000" % self.host_addr
self.vm0.def_driver = "vfio-pci"
self.vm0.driver_mode = "noiommu"
self.wait_vm_net_ready(vm_index=0)
@@ -194,7 +194,7 @@ class TestBasic4kPagesCbdma(TestCase):
def connect_vm1(self):
self.vm1 = QEMUKvm(self.dut, "vm1", "vm_hotplug")
self.vm1.net_type = "hostfwd"
- self.vm1.hostfwd_addr = "%s:6001" % self.dut.get_ip_address()
+ self.vm1.hostfwd_addr = "%s:6001" % self.host_addr
self.vm1.def_driver = "vfio-pci"
self.vm1.driver_mode = "noiommu"
self.wait_vm_net_ready(vm_index=1)