[V1,5/5] tests: add nic and pkg check for rss_gtpu
Commit Message
add decorate in set_up_all to check if nic and pkg
support current suite, if not, all the cases will be
marked as N/A.
Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py | 5 ++++-
tests/TestSuite_cvl_advanced_rss_gtpu.py | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
@@ -35,7 +35,7 @@ import random
import time
from packet import Packet
from pmd_output import PmdOutput
-from test_case import TestCase
+from test_case import TestCase, skip_unsupported_pkg, check_supported_nic
from rte_flow_common import RssProcessing
mac_ipv4_gtpu_ipv4_basic = {
@@ -7807,7 +7807,10 @@ mac_ipv6_gtpc_symmetric_toeplitz = [mac_ipv6_gtpc_symmetric]
class TestCVLAdvancedIAVFRSSGTPU(TestCase):
+ supported_nic = ['columbiaville_100g', 'columbiaville_25g', 'columbiaville_25gx2']
+ @check_supported_nic(supported_nic)
+ @skip_unsupported_pkg('os default')
def set_up_all(self):
"""
Run at the start of each test suite.
@@ -34,7 +34,7 @@ import re
import time
from packet import Packet
from pmd_output import PmdOutput
-from test_case import TestCase
+from test_case import TestCase, skip_unsupported_pkg, check_supported_nic
from rte_flow_common import RssProcessing
@@ -5555,7 +5555,10 @@ mac_ipv4_gtpu_eh_ipv6_tcp_without_ul_dl_symmetric = eval(str(mac_ipv4_gtpu_eh_ip
class TestCVLAdvancedRSSGTPU(TestCase):
+ supported_nic = ['columbiaville_100g', 'columbiaville_25g', 'columbiaville_25gx2']
+ @check_supported_nic(supported_nic)
+ @skip_unsupported_pkg('os default')
def set_up_all(self):
"""
Run at the start of each test suite.