Message ID | 20230313031240.3569731-1-weix.ling@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg | expand |
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 |
> -----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>
diff --git a/tests/TestSuite_basic_4k_pages_cbdma.py b/tests/TestSuite_basic_4k_pages_cbdma.py index b4d09107..70415dd1 100644 --- a/tests/TestSuite_basic_4k_pages_cbdma.py +++ b/tests/TestSuite_basic_4k_pages_cbdma.py @@ -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)
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(-)