[dts][PATCH V1] tests/packet_capture: add support on ice

Lingli Chen linglix.chen at intel.com
Fri Mar 17 08:20:29 CET 2023


add support driver ice and support target clang

Signed-off-by: Lingli Chen <linglix.chen at intel.com>
---
 tests/TestSuite_packet_capture.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_packet_capture.py b/tests/TestSuite_packet_capture.py
index 9244a6ac..6b0ee77b 100644
--- a/tests/TestSuite_packet_capture.py
+++ b/tests/TestSuite_packet_capture.py
@@ -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")
-- 
2.17.1



More information about the dts mailing list