get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 84597,
    "url": "http://patches.dpdk.org/api/patches/84597/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20201127025029.22276-2-haiyangx.zhao@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": "<20201127025029.22276-2-haiyangx.zhao@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201127025029.22276-2-haiyangx.zhao@intel.com",
    "date": "2020-11-27T02:50:23",
    "name": "[V1,1/7] framework/dut: record DPDK version in host DUT",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5f24244aac30bdb3e4d0278037142fbd23d63098",
    "submitter": {
        "id": 1978,
        "url": "http://patches.dpdk.org/api/people/1978/?format=api",
        "name": "Zhao, HaiyangX",
        "email": "haiyangx.zhao@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20201127025029.22276-2-haiyangx.zhao@intel.com/mbox/",
    "series": [
        {
            "id": 14123,
            "url": "http://patches.dpdk.org/api/series/14123/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=14123",
            "date": "2020-11-27T02:50:22",
            "name": "framework: record DPDK version in result",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14123/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/84597/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/84597/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D0DEFA0527;\n\tFri, 27 Nov 2020 03:56:53 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id AC098CAA2;\n\tFri, 27 Nov 2020 03:56:52 +0100 (CET)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 8F23CCA9D\n for <dts@dpdk.org>; Fri, 27 Nov 2020 03:56:49 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Nov 2020 18:56:47 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.57])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Nov 2020 18:56:46 -0800"
        ],
        "IronPort-SDR": [
            "\n hG9gI9jg2WmFTNwbLOPoBGFEKbW5Xt8LBr3QL24iNhTrMjXGIeBiWikvvBEIETqOBgSkgSlPy9\n UQxFXIy8AyXQ==",
            "\n 4CcB0v28vsyzoJChUtp0vvuNZgIiFj6mZGdeqE3JdNUhMbXM0tuwwDzwPIoTYe6jV0X+ek6+QJ\n DlkwfHSlrRTw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9817\"; a=\"233947101\"",
            "E=Sophos;i=\"5.78,373,1599548400\"; d=\"scan'208\";a=\"233947101\"",
            "E=Sophos;i=\"5.78,373,1599548400\"; d=\"scan'208\";a=\"313557292\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "From": "Haiyang Zhao <haiyangx.zhao@intel.com>",
        "To": "Lijuan.Tu@intel.com,\n\tdts@dpdk.org",
        "Cc": "Haiyang Zhao <haiyangx.zhao@intel.com>",
        "Date": "Fri, 27 Nov 2020 10:50:23 +0800",
        "Message-Id": "<20201127025029.22276-2-haiyangx.zhao@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201127025029.22276-1-haiyangx.zhao@intel.com>",
        "References": "<20201127025029.22276-1-haiyangx.zhao@intel.com>",
        "Subject": "[dts] [PATCH V1 1/7] framework/dut: record DPDK version in host DUT",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "get dpdk version from VERSION and save it in host dut.\n\nSigned-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>\n---\n framework/dut.py | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/framework/dut.py b/framework/dut.py\nindex 2863848..f3ef8c6 100644\n--- a/framework/dut.py\n+++ b/framework/dut.py\n@@ -80,6 +80,7 @@ class Dut(Crb):\n         self.hugepage_path = None\n         self.apps_name_conf = {}\n         self.apps_name = {}\n+        self.dpdk_version = ''\n \n     def filter_cores_from_crb_cfg(self):\n         # get core list from crbs.cfg\n@@ -368,7 +369,13 @@ class Dut(Crb):\n         Then call pci scan function to collect nic device information.\n         At last setup DUT' environment for validation.\n         \"\"\"\n-        self.send_expect(\"cd %s\" % self.base_dir, \"# \")\n+        out = self.send_expect(\"cd %s\" % self.base_dir, \"# \")\n+        assert 'No such file or directory' not in out, \"Can't switch to dpdk folder!!!\"\n+        out = self.send_expect(\"cat VERSION\", \"# \")\n+        if 'No such file or directory' in out:\n+            self.logger.error(\"Can't get DPDK version due to VERSION not exist!!!\")\n+        else:\n+            self.dpdk_version = out\n         self.send_expect(\"alias ls='ls --color=none'\", \"#\")\n \n         if self.get_os_type() == 'freebsd':\n",
    "prefixes": [
        "V1",
        "1/7"
    ]
}