get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/115648/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 115648,
    "url": "http://patches.dpdk.org/api/patches/115648/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220830081231.1255-1-dukaix.yuan@intel.com/",
    "project": {
        "id": 3,
        "url": "http://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": "<20220830081231.1255-1-dukaix.yuan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220830081231.1255-1-dukaix.yuan@intel.com",
    "date": "2022-08-30T08:12:31",
    "name": "[V2] tests/multiprocess modify the regular expression",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "385bc17f1299dbb1e2f0e20a98853ab89a5c6d9b",
    "submitter": {
        "id": 2823,
        "url": "http://patches.dpdk.org/api/people/2823/?format=api",
        "name": "Yuan, DukaiX",
        "email": "dukaix.yuan@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20220830081231.1255-1-dukaix.yuan@intel.com/mbox/",
    "series": [
        {
            "id": 24466,
            "url": "http://patches.dpdk.org/api/series/24466/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=24466",
            "date": "2022-08-30T08:12:31",
            "name": "[V2] tests/multiprocess modify the regular expression",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/24466/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/115648/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/115648/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 9CC1DA034C;\n\tTue, 30 Aug 2022 10:16:26 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 71CE840F18;\n\tTue, 30 Aug 2022 10:16:26 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 6256840F17\n for <dts@dpdk.org>; Tue, 30 Aug 2022 10:16:25 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Aug 2022 01:16:24 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.15])\n by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Aug 2022 01:16:23 -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=1661847385; x=1693383385;\n h=from:to:cc:subject:date:message-id;\n bh=j59DGgTfDpvgaIQ5jB38JOdDNNGoQY46SwIG73MFRyU=;\n b=gJV44//rS7B3IXLvW0HvET+RSpLlPnDlaLj09cPZo+2+2b7rMk1mOAX3\n x3AKpqzDv3CwJl02jOuXBned4Ld2t1/KzK7xiEJ4VikYVAPSvpMcaq/Vg\n j+qMfb+WUMfaEYcjnqkilXhp0E/UFz+TRdcdNzEY2nYnVD7b8WysgO5+l\n awc3PI2NRjtawupi1pnWoeGIw68yAYh/zkeqJiwfd+i8M/kelVieFuLfN\n sQGOct/9dJXhJnwcC37CgZqQRgu/Fm6r8s3L/rB7mNVOJqd1NFYzb1jW3\n DrwaOedFI9wdcicSou2HTUMWgfa7cMxeUZhMc7pEOBxv8ADLJXtTN3OLK Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10454\"; a=\"356831369\"",
            "E=Sophos;i=\"5.93,274,1654585200\"; d=\"scan'208\";a=\"356831369\"",
            "E=Sophos;i=\"5.93,274,1654585200\"; d=\"scan'208\";a=\"607760280\""
        ],
        "From": "Dukai Yuan <dukaix.yuan@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Dukai Yuan <dukaix.yuan@intel.com>",
        "Subject": "[dts][PATCH V2] tests/multiprocess modify the regular expression",
        "Date": "Tue, 30 Aug 2022 16:12:31 +0800",
        "Message-Id": "<20220830081231.1255-1-dukaix.yuan@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": "Modify re.search to re.findall to get all the list.\n\nSigned-off-by: Dukai Yuan <dukaix.yuan@intel.com>\n---\n tests/TestSuite_multiprocess.py | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py\nindex da382a41..3d408ea9 100644\n--- a/tests/TestSuite_multiprocess.py\n+++ b/tests/TestSuite_multiprocess.py\n@@ -175,6 +175,7 @@ class TestMultiprocess(TestCase):\n                 pktnum=pkt_num,\n                 dstmac=\"00:11:22:33:44:55\",\n             )\n+        time.sleep(3)\n         pkt.send_pkt(crb=self.tester, tx_port=self.tester_ifaces[0], count=1)\n \n     def specify_packet(self, que_num):\n@@ -1014,10 +1015,13 @@ class TestMultiprocess(TestCase):\n                 self.logger.err(\"Error occured:{}\".format(traceback.format_exc(e)))\n             finally:\n                 session_obj.close()\n-        res = re.search(\n-            r\"Port \\d+\\s+-\\s+rx:\\s+(?P<rx>\\d+)\\s+tx:.*PORTS\", out, re.DOTALL\n+        res = re.findall(\n+            r\"Port \\d+\\s+-\\s+rx:\\s+\\d+.*?Client\\s+[1]\\s+-.*?tx_drop:\\s+\\d+\",\n+            out,\n+            re.DOTALL,\n         )\n-        rx_num = re.findall(r\"Client\\s+\\d\\s+-\\s+rx:\\s+(\\d+)\", res.group(0))\n+        rx_num = re.findall(r\"Client\\s+\\d\\s+-\\s+rx:\\s+(\\d+)\", res[-1])\n+\n         for i in range(proc_num):\n             self.verify(\n                 int(rx_num[i]) > 0,\n",
    "prefixes": [
        "V2"
    ]
}