Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/129510/?format=api
http://patchwork.dpdk.org/api/patches/129510/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/patch/20230712193126.1994361-4-ke1.xu@intel.com/", "project": { "id": 3, "url": "http://patchwork.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": "<20230712193126.1994361-4-ke1.xu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20230712193126.1994361-4-ke1.xu@intel.com", "date": "2023-07-12T19:31:25", "name": "[V1,3/4] framework/test_case: Add skip_unsupported decorator.", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "02706a1d2a3973a0f5e26624cb222e7e1004407d", "submitter": { "id": 2810, "url": "http://patchwork.dpdk.org/api/people/2810/?format=api", "name": "Ke Xu", "email": "ke1.xu@intel.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dts/patch/20230712193126.1994361-4-ke1.xu@intel.com/mbox/", "series": [ { "id": 28925, "url": "http://patchwork.dpdk.org/api/series/28925/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=28925", "date": "2023-07-12T19:31:22", "name": "Updating packet module and introducing a new common module.", "version": 1, "mbox": "http://patchwork.dpdk.org/series/28925/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/129510/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/129510/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 4E3B242E58;\n\tWed, 12 Jul 2023 21:33:25 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 499DE427EE;\n\tWed, 12 Jul 2023 21:33:25 +0200 (CEST)", "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 81D3E40EE7\n for <dts@dpdk.org>; Wed, 12 Jul 2023 21:33:23 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jul 2023 12:33:22 -0700", "from dpdk-xuke-host.sh.intel.com ([10.67.114.220])\n by fmsmga004.fm.intel.com with ESMTP; 12 Jul 2023 12:33:21 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1689190403; x=1720726403;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=h7bkiW8vkrKpKTG2hJpWdSwnvM3MXT+3iG0NRXVJZGM=;\n b=GcT0tP4KzGi43rrlStzwvIeCDxA+GJXTDYPmeb9q+OW63h2zllTwPv84\n QLwJtpn3RRVOK3rdOh9Wbm9bhiOxTfqLdW0xrRxePnxLZb4xbtXKdyRy5\n FczN2Fi0WrI0hGXlfxL59IHANWGW0C6Qt21QQ0nGjsKL61BJO3W9X6x2i\n c8GfUMOVFHUuWpH9N+/mFXFnauGT4oj8r57OaNCJ+qRDHRU1vnx9X1y6O\n LZ8qOEaDOLnBjHuvNmifGSwhy91I0YW0eESTeYHu4WKql2mXVDXVmnm7O\n Mg7FQZbngzP9Ip7ZNeRw71xJG0ORBiLOZ70UYUqNMnT2lEIND2o+h5L+x g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10769\"; a=\"428728896\"", "E=Sophos;i=\"6.01,200,1684825200\"; d=\"scan'208\";a=\"428728896\"", "E=McAfee;i=\"6600,9927,10769\"; a=\"791740116\"", "E=Sophos;i=\"6.01,200,1684825200\"; d=\"scan'208\";a=\"791740116\"" ], "X-ExtLoop1": "1", "From": "Ke Xu <ke1.xu@intel.com>", "To": "dts@dpdk.org", "Cc": "ke1.xu@intel.com,\n\ttarcadia@qq.com", "Subject": "[DTS][Patch V1 3/4] framework/test_case: Add skip_unsupported\n decorator.", "Date": "Wed, 12 Jul 2023 19:31:25 +0000", "Message-Id": "<20230712193126.1994361-4-ke1.xu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230712193126.1994361-1-ke1.xu@intel.com>", "References": "<20230712193126.1994361-1-ke1.xu@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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 a new decorator for marking unsupported cases.\n\nSigned-off-by: Ke Xu <ke1.xu@intel.com>\n---\n framework/test_case.py | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)", "diff": "diff --git a/framework/test_case.py b/framework/test_case.py\nindex 68f89407..35342de0 100644\n--- a/framework/test_case.py\n+++ b/framework/test_case.py\n@@ -628,3 +628,24 @@ def skip_unsupported_host_driver(drivers):\n return wrapper\n \n return decorator\n+\n+\n+def skip_unsupported(do_skip: bool = True, reason: str = None):\n+ \"\"\"\n+ Skip case which are not supported. This means a case may be supported in future or in other branches.\n+ \"\"\"\n+\n+ def decorator(func):\n+ @wraps(func)\n+ def wrapper(*args, **kwargs):\n+ test_case = args[0]\n+ if do_skip:\n+ raise VerifySkip(\n+ \"DPDK currently do not support this case\"\n+ + (\" for %s\" % reason if reason else \"\")\n+ )\n+ return func(*args, **kwargs)\n+\n+ return wrapper\n+\n+ return decorator\n", "prefixes": [ "V1", "3/4" ] }{ "id": 129510, "url": "