[dts] [PATCH V1 3/3]virtio_user_as_exceptional_path: set test nic to driver specified in cfg

Tu, Lijuan lijuan.tu at intel.com
Mon Apr 27 09:51:36 CEST 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
> Sent: Sunday, April 26, 2020 6:39 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V1 3/3]virtio_user_as_exceptional_path: set test nic to
> driver specified in cfg
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
> ---
>  tests/TestSuite_virtio_user_as_exceptional_path.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_virtio_user_as_exceptional_path.py
> b/tests/TestSuite_virtio_user_as_exceptional_path.py
> index 470e0de..35a0a98 100644
> --- a/tests/TestSuite_virtio_user_as_exceptional_path.py
> +++ b/tests/TestSuite_virtio_user_as_exceptional_path.py
> @@ -48,6 +48,7 @@ class TestVirtioUserAsExceptionalPath(TestCase):
>          # Get and verify the ports
>          self.dut_ports = self.dut.get_ports()
>          self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
> +        self.def_driver =
> self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver()
>          self.pci0 = self.dut.ports_info[0]['pci']
>          pf_info = self.dut_ports[0]
>          netdev = self.dut.ports_info[pf_info]['port']
> @@ -96,9 +97,8 @@ class TestVirtioUserAsExceptionalPath(TestCase):
>          for i in self.dut_ports:
>              port = self.dut.ports_info[i]['port']
>              port.bind_driver()
> -        self.dut.send_expect(
> -            "./usertools/dpdk-devbind.py -b igb_uio %s" %
> -            self.pci, '#', 30)
> +        bind_script_path = self.dut.get_dpdk_bind_script()
> +        self.dut.send_expect('%s --bind=%s %s' % (bind_script_path,
> self.def_driver, self.pci), '# ')
>          self.peer_pci_setup = True
> 
>      def launch_testpmd_vhost(self):
> --
> 1.8.3.1



More information about the dts mailing list