[dts] [PATCH V1] tests/cvl_fdir: add decorate for os-default pkg not support case

Qin Sun qinx.sun at intel.com
Wed Jul 21 20:35:08 CEST 2021


some cases os-default pkg not support need to add decorate to skip test

cvl_fdir: test_same_rule_on_two_ports case include gtpu rule
cvl_qinq: 4 cases include pppoe rule
iavf_flexible_descriptor: os-default pkg not support RXDID[17] 

Signed-off-by: Qin Sun <qinx.sun at intel.com>
---
 tests/TestSuite_cvl_fdir.py                 | 1 +
 tests/TestSuite_cvl_qinq.py                 | 6 +++++-
 tests/TestSuite_iavf_flexible_descriptor.py | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py
index 1d419443..0c3a1917 100644
--- a/tests/TestSuite_cvl_fdir.py
+++ b/tests/TestSuite_cvl_fdir.py
@@ -2898,6 +2898,7 @@ class TestCVLFdir(TestCase):
         self.dut.send_command("quit", timeout=2)
         self.launch_testpmd_with_mark()
 
+    @skip_unsupported_pkg('os default')
     def test_same_rule_on_two_ports(self):
         rule = [
             'flow create 0 ingress pattern eth / ipv4 / udp / gtpu teid is 0x12345678 / gtp_psc qfi is 0x34 / end actions queue index 1 / mark / end',
diff --git a/tests/TestSuite_cvl_qinq.py b/tests/TestSuite_cvl_qinq.py
index 4602a9e9..0c950b03 100644
--- a/tests/TestSuite_cvl_qinq.py
+++ b/tests/TestSuite_cvl_qinq.py
@@ -35,7 +35,7 @@ import time
 import random
 from packet import Packet
 from pmd_output import PmdOutput
-from test_case import TestCase, check_supported_nic
+from test_case import TestCase, check_supported_nic, skip_unsupported_pkg
 from utils import GREEN, RED
 from rte_flow_common import RssProcessing
 
@@ -467,6 +467,7 @@ class TestCvlQinq(TestCase):
         self.launch_testpmd()
         self._rte_flow_validate_pattern(mac_qinq_ipv6_pay)
 
+    @skip_unsupported_pkg('os default')
     def test_mac_qinq_pppoe_pay(self):
         """
         DCF switch for MAC_QINQ_PPPOE_PAY
@@ -475,6 +476,7 @@ class TestCvlQinq(TestCase):
         self.launch_testpmd()
         self._rte_flow_validate_pattern(mac_qinq_pppoe_pay)
 
+    @skip_unsupported_pkg('os default')
     def test_mac_qinq_pppoe_pay_proto(self):
         """
         DCF switch for MAC_QINQ_PPPOE_PAY_Proto
@@ -483,6 +485,7 @@ class TestCvlQinq(TestCase):
         self.launch_testpmd()
         self._rte_flow_validate_pattern(mac_qinq_pppoe_proto)
 
+    @skip_unsupported_pkg('os default')
     def test_mac_qinq_pppoe_ipv4(self):
         """
         DCF switch for MAC_QINQ_PPPOE_IPV4
@@ -491,6 +494,7 @@ class TestCvlQinq(TestCase):
         self.launch_testpmd()
         self._rte_flow_validate_pattern(mac_qinq_pppoe_ipv4)
 
+    @skip_unsupported_pkg('os default')
     def test_mac_qinq_pppoe_ipv6(self):
         """
         DCF switch for MAC_QINQ_PPPOE_IPV6
diff --git a/tests/TestSuite_iavf_flexible_descriptor.py b/tests/TestSuite_iavf_flexible_descriptor.py
index 41d227ae..e5cd9b3d 100644
--- a/tests/TestSuite_iavf_flexible_descriptor.py
+++ b/tests/TestSuite_iavf_flexible_descriptor.py
@@ -155,6 +155,7 @@ class TestIavfFlexibleDescriptor(TestCase, FlexibleRxdBase):
         """
         self.check_double_VLAN_fields_in_RXD_8021Q_1_VLAN_tag()
 
+    @skip_unsupported_pkg('os default')
     def test_check_double_VLAN_fields_in_RXD_8021Q_2_VLAN_tag(self):
         """
         Check double VLAN fields in RXD (802.1Q) 2 VLAN tags
-- 
2.17.1



More information about the dts mailing list