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 7605CA0561; Thu, 18 Mar 2021 10:31:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51227140F19; Thu, 18 Mar 2021 10:31:16 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 532C6140F17 for ; Thu, 18 Mar 2021 10:31:13 +0100 (CET) IronPort-SDR: Riq03iyerkag+3Bq7VrWL+FSPHtiDytyn7bRPNE1JiQxTUbCZ2R/d678HC+BCx0xJOYBBCdhD3 j6qb5abEt8Sw== X-IronPort-AV: E=McAfee;i="6000,8403,9926"; a="189731886" X-IronPort-AV: E=Sophos;i="5.81,258,1610438400"; d="scan'208";a="189731886" 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:12 -0700 IronPort-SDR: QH8me62JMrxBpmy2eOnRPgbbONvM3kHObD0zBekWmOe8fLvY/vvQUH4vaAy1+Oax5MYCqvIjb0 EK85/ZrfRFgQ== X-IronPort-AV: E=Sophos;i="5.81,258,1610438400"; d="scan'208";a="413013376" 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:11 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: lijuan.tu@intel.com, Haiyang Zhao Date: Thu, 18 Mar 2021 17:22:10 +0800 Message-Id: <20210318092215.27270-1-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2 0/5] framework: add a proposal of recognizing pkgs 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" v2: fix exception when get pkg info. v1: Now there are os default/comms/wireless pkgs for CVL NIC, and they support different protocals. Some suite like l2tp_esp_coverage are partly support these pkgs, we replace the pkg in suite to support the case in the past, but this may occur exception and the result may not be we want, so we provide a new proposal by adding a decorate above test case to check if the pkg support current case, and do not replace pkg in suite. This patch set is the proposal of framework modification. Haiyang Zhao (5): framework/exception: add new exception VerifySkip framework/test_case: handle the VerifySkip exception and add some functions nics/net_device: add attribute pkg and get method framework/dut: get nic package in dut prerequisites tests: add nic and pkg check for rss_gtpu framework/dut.py | 23 +++- framework/exception.py | 13 +++ framework/test_case.py | 102 +++++++++++++++--- nics/net_device.py | 23 +++- tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py | 5 +- tests/TestSuite_cvl_advanced_rss_gtpu.py | 5 +- 6 files changed, 153 insertions(+), 18 deletions(-) -- 2.17.1