Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/120937/?format=api
https://patches.dpdk.org/api/patches/120937/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20221215085425.32477-1-linglix.chen@intel.com/", "project": { "id": 3, "url": "https://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20221215085425.32477-1-linglix.chen@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20221215085425.32477-1-linglix.chen@intel.com", "date": "2022-12-15T08:54:24", "name": "[V2,1/2] framework/test_case: add skip_unsupported_host_driver decorator", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "0db0f99e3b543075527fde054ecd84dc9905ba95", "submitter": { "id": 1843, "url": "https://patches.dpdk.org/api/people/1843/?format=api", "name": "Lingli Chen", "email": "linglix.chen@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20221215085425.32477-1-linglix.chen@intel.com/mbox/", "series": [ { "id": 26148, "url": "https://patches.dpdk.org/api/series/26148/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=26148", "date": "2022-12-15T08:54:24", "name": "[V2,1/2] framework/test_case: add skip_unsupported_host_driver decorator", "version": 2, "mbox": "https://patches.dpdk.org/series/26148/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/120937/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/120937/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B05C9A0543;\n\tThu, 15 Dec 2022 10:51:38 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AA11140685;\n\tThu, 15 Dec 2022 10:51:38 +0100 (CET)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 00C8A40223\n for <dts@dpdk.org>; Thu, 15 Dec 2022 10:51:36 +0100 (CET)", "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Dec 2022 01:51:36 -0800", "from unknown (HELO localhost.localdomain) ([10.239.252.99])\n by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Dec 2022 01:51:34 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1671097897; x=1702633897;\n h=from:to:cc:subject:date:message-id;\n bh=oPj4J4P3I2rrjTEZL7GMs71M/nw1Bc4MKv45ikYVlUA=;\n b=AWkwcD4vULO+jPA8zL4YLxE7c5ix8r2MUVhQvvEtXfUMGOkMM0kGa/G3\n n8zrZD9W4STNASe+IVk80VYRJjJwzPjEegeBkVMR34XRnod2lVWtgJipP\n vyb0KV8Px5DaQnbv6OkgC0/T2QdywcTGPL6/v4guEcd7mBuox9bKSHw9w\n zTmmZYkowXb18rRVdlNMkq4FW12cnByQCicHU8bUcRsf6yyIaEhTnBLLT\n FU/nVbHO9P2ZH+X18KdZbc942fsMnEeHMp1RgMLJNUB5e8/c9Zf32cSjs\n x9iWTZS7EkGhFLxVTbGNf00H/bq8rEFV6phhIJ3F/oOlBRLG20NbxQjQs w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10561\"; a=\"298981782\"", "E=Sophos;i=\"5.96,247,1665471600\"; d=\"scan'208\";a=\"298981782\"", "E=McAfee;i=\"6500,9779,10561\"; a=\"681791964\"", "E=Sophos;i=\"5.96,247,1665471600\"; d=\"scan'208\";a=\"681791964\"" ], "From": "Lingli Chen <linglix.chen@intel.com>", "To": "dts@dpdk.org", "Cc": "zhiminx.huang@intel.com,\n\tLingli Chen <linglix.chen@intel.com>", "Subject": "[dts][PATCH V2 1/2] framework/test_case: add\n skip_unsupported_host_driver decorator", "Date": "Thu, 15 Dec 2022 03:54:24 -0500", "Message-Id": "<20221215085425.32477-1-linglix.chen@intel.com>", "X-Mailer": "git-send-email 2.17.1", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "add decorator\n\nSigned-off-by: Lingli Chen <linglix.chen@intel.com>\n---\nV2: reformat framework/test_case.py\n\n framework/test_case.py | 22 ++++++++++++++++++++++\n 1 file changed, 22 insertions(+)", "diff": "diff --git a/framework/test_case.py b/framework/test_case.py\nindex 2831cb36..86f5bbbf 100644\n--- a/framework/test_case.py\n+++ b/framework/test_case.py\n@@ -606,3 +606,25 @@ def check_supported_nic(nics):\n return wrapper\n \n return decorator\n+\n+\n+def skip_unsupported_host_driver(drivers):\n+ \"\"\"\n+ Skip case which are not supported by the host driver(vfio-pci/igb_uio etc.)\n+ \"\"\"\n+ if isinstance(drivers, str):\n+ drivers = [drivers]\n+\n+ def decorator(func):\n+ @wraps(func)\n+ def wrapper(*args, **kwargs):\n+ test_case = args[0]\n+ if test_case.drivername in drivers:\n+ raise VerifySkip(\n+ \"{} do not support this case\".format(test_case.drivername)\n+ )\n+ return func(*args, **kwargs)\n+\n+ return wrapper\n+\n+ return decorator\n", "prefixes": [ "V2", "1/2" ] }{ "id": 120937, "url": "