get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129486,
    "url": "https://patches.dpdk.org/api/patches/129486/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20230712141406.978846-1-songx.jiale@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": "<20230712141406.978846-1-songx.jiale@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230712141406.978846-1-songx.jiale@intel.com",
    "date": "2023-07-12T14:14:06",
    "name": "[V1] framework/tester: optimize scripts",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2fe80beea4a908350f062890a5c611be149a2989",
    "submitter": {
        "id": 2352,
        "url": "https://patches.dpdk.org/api/people/2352/?format=api",
        "name": "Jiale, SongX",
        "email": "songx.jiale@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20230712141406.978846-1-songx.jiale@intel.com/mbox/",
    "series": [
        {
            "id": 28914,
            "url": "https://patches.dpdk.org/api/series/28914/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=28914",
            "date": "2023-07-12T14:14:06",
            "name": "[V1] framework/tester: optimize scripts",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/28914/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/129486/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/129486/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 CC49842E4E;\n\tWed, 12 Jul 2023 07:59:38 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B5E9740A7D;\n\tWed, 12 Jul 2023 07:59:38 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id E686C406BA\n for <dts@dpdk.org>; Wed, 12 Jul 2023 07:59:36 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jul 2023 22:59:35 -0700",
            "from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241])\n by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jul 2023 22:59:34 -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=1689141577; x=1720677577;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=npyeVDkz9IneaYkwnmLvu0RbM5NzYflPGBH/KY6PZdY=;\n b=Vwnk66JA8fKuPyTO1PFzvxZNxMQ5R5iUb6o8sH9zNqEln5QF1na/JUPq\n LR2uF5C3dQDG24u5dy9pznekE2r+6eHAMKC+mYzDEzdQJyMLHEeQ0wqx5\n yKdkAqXuNHcEwY7EOGWRtx02YduuvW7tKDMFC9E//0EUJ9V2u0KAlo4f2\n WIX5Z8XzoVz1U9sNZwMaddrqzVI+9lFceruRHBkOYe15oxGplstzZULaZ\n JFWtNITUrQjhmXigpXCCB5FfSrmj4XgpRihcDuObQPm+5oe1noiw/3jZ/\n bvfl7ekHfDc29g8huqtYyrotGhh2dq6c1h7GD1XqgwHtgxHWWTXtATWiL w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10768\"; a=\"349662233\"",
            "E=Sophos;i=\"6.01,198,1684825200\"; d=\"scan'208\";a=\"349662233\"",
            "E=McAfee;i=\"6600,9927,10768\"; a=\"865993122\"",
            "E=Sophos;i=\"6.01,198,1684825200\"; d=\"scan'208\";a=\"865993122\""
        ],
        "X-ExtLoop1": "1",
        "From": "Jiale Song <songx.jiale@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Jiale Song <songx.jiale@intel.com>",
        "Subject": "[dts] [PATCH V1] framework/tester: optimize scripts",
        "Date": "Wed, 12 Jul 2023 22:14:06 +0800",
        "Message-Id": "<20230712141406.978846-1-songx.jiale@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "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": "timed out execution of Scapy \"quit()\" command will cause dts to end running.\nmethod of reducing command timeout:\n1. increase timeout time.\n2. ensure that the \"quit()\" command line is executed in scapy.\n\n\nSigned-off-by: Jiale Song <songx.jiale@intel.com>\n---\n framework/tester.py | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/framework/tester.py b/framework/tester.py\nindex 5e6c72ad..d577c29e 100644\n--- a/framework/tester.py\n+++ b/framework/tester.py\n@@ -866,7 +866,9 @@ class Tester(Crb):\n         if self.scapy_sessions_li:\n             for i in self.scapy_sessions_li:\n                 if i.session.isalive():\n-                    i.session.send_expect(\"quit()\", \"#\", timeout=2)\n+                    out = i.session.send_command(\"^C\")\n+                    if \">>>\" in out:\n+                        i.session.send_expect(\"quit()\", \"# \", timeout=5)\n                     i.session.close()\n             self.scapy_sessions_li.clear()\n \n",
    "prefixes": [
        "V1"
    ]
}