From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0CA7EA0562; Thu, 18 Mar 2021 10:31:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0696D140F39; Thu, 18 Mar 2021 10:31:22 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 56FE3140F17 for ; Thu, 18 Mar 2021 10:31:21 +0100 (CET) IronPort-SDR: CU/bJpWCOBjb6EhceCexy79YntHJsi7q7qPTmOZzS5+2dzw+EUbs7ENLi7v47sAy+CH/5ZmuX9 VuSDrm9izu8Q== X-IronPort-AV: E=McAfee;i="6000,8403,9926"; a="189731931" X-IronPort-AV: E=Sophos;i="5.81,258,1610438400"; d="scan'208";a="189731931" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 02:31:21 -0700 IronPort-SDR: 0lAiEnjandWRhQTTcs9q/17vMtjxMjlYqXrtEBvtOwCrb14V4FQK1seL0VLIXqliaX62qbD97J rNxtIdfYOY6w== X-IronPort-AV: E=Sophos;i="5.81,258,1610438400"; d="scan'208";a="413013421" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 02:31:19 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: lijuan.tu@intel.com, Haiyang Zhao Date: Thu, 18 Mar 2021 17:22:15 +0800 Message-Id: <20210318092215.27270-6-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210318092215.27270-1-haiyangx.zhao@intel.com> References: <20210318092215.27270-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V2 5/5] tests: add nic and pkg check for rss_gtpu X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" 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 --- tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py | 5 ++++- tests/TestSuite_cvl_advanced_rss_gtpu.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py b/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py index 93e1309b..6490dcbf 100755 --- a/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py +++ b/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py @@ -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. diff --git a/tests/TestSuite_cvl_advanced_rss_gtpu.py b/tests/TestSuite_cvl_advanced_rss_gtpu.py index df514198..054f1907 100755 --- a/tests/TestSuite_cvl_advanced_rss_gtpu.py +++ b/tests/TestSuite_cvl_advanced_rss_gtpu.py @@ -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. -- 2.17.1