[V1] tests/*: optimize scripts
Checks
Context |
Check |
Description |
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
the network card does not support a driver named "default", modify "default" to the actual driver.
Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
tests/TestSuite_iavf.py | 2 +-
tests/TestSuite_kernelpf_iavf.py | 2 +-
tests/TestSuite_vf_jumboframe.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Comments
> -----Original Message-----
> From: Song Jiale <songx.jiale@intel.com>
> Sent: Friday, October 28, 2022 10:20 PM
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATCH V1] tests/*: optimize scripts
>
> the network card does not support a driver named "default", modify
> "default" to the actual driver.
>
> Signed-off-by: Song Jiale <songx.jiale@intel.com>
> ---
Tested-by: Weiyuan Li <weiyuanx.li@intel.com>
On Fri, 28 Oct 2022 14:19:56 +0000, Song Jiale <songx.jiale@intel.com> wrote:
> the network card does not support a driver named "default", modify "default" to the actual driver.
>
> Signed-off-by: Song Jiale <songx.jiale@intel.com>
Applied, thanks
@@ -147,7 +147,7 @@ class TestIavf(TestCase):
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port_1)
port = self.dut.ports_info[self.used_dut_port_1]["port"]
self.used_dut_port_1 = None
- self.bind_nic_driver(self.dut_ports[:2], driver="default")
+ self.bind_nic_driver(self.dut_ports[:2], driver=self.drivername)
self.env_done = False
def send_packet(self, mac, itf, tran_type="udp", count=1, pktLength=64, VID=100):
@@ -172,7 +172,7 @@ class TestKernelpfIavf(TestCase):
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port)
self.used_dut_port = None
- self.bind_nic_driver(self.dut_ports, driver="default")
+ self.bind_nic_driver(self.dut_ports, driver=self.drivername)
self.env_done = False
@@ -117,7 +117,7 @@ class TestVfJumboFrame(TestCase):
if getattr(self, "used_dut_port", None) != None:
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port)
self.used_dut_port = None
- self.bind_nic_driver(self.dut_ports[:1], driver="default")
+ self.bind_nic_driver(self.dut_ports[:1], driver=self.drivername)
self.env_done = False