[V1] tests/packet_capture: add support on ice
Checks
Context |
Check |
Description |
ci/Intel-dts-suite-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-format-test |
success
|
Testing OK
|
Commit Message
add support driver ice and support target clang
Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
tests/TestSuite_packet_capture.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Comments
On Fri, 17 Mar 2023 03:20:29 -0400, Lingli Chen <linglix.chen@intel.com> wrote:
> add support driver ice and support target clang
>
> Signed-off-by: Lingli Chen <linglix.chen@intel.com>
Applied, thanks
@@ -232,7 +232,7 @@ class TestPacketCapture(TestCase):
self.rxtx_iface = ifaces[0]
def verify_supported_nic(self):
- supported_drivers = ["i40e", "ixgbe"]
+ supported_drivers = ["i40e", "ixgbe", "ice"]
result = all(
[
self.dut.ports_info[index]["port"].default_driver in supported_drivers
@@ -803,8 +803,9 @@ class TestPacketCapture(TestCase):
Run at the start of each test suite.
"""
self.verify(
- self.target == "x86_64-native-linuxapp-gcc",
- "only support x86_64-native-linuxapp-gcc",
+ self.target
+ in ["x86_64-native-linuxapp-gcc", "x86_64-native-linuxapp-clang"],
+ "only support x86_64-native-linuxapp-gcc and x86_64-native-linuxapp-clang",
)
self.dut_ports = self.dut.get_ports()
self.verify(len(self.dut_ports) == 2, "Insufficient ports for testing")