get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85386,
    "url": "https://patches.dpdk.org/api/patches/85386/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20201218113632.367094-1-weix.ling@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": "<20201218113632.367094-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201218113632.367094-1-weix.ling@intel.com",
    "date": "2020-12-18T11:36:32",
    "name": "[V1] tests/unit_tests_loopback:rm exists file before cp",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d7c3b05e78b127be0a87a966789c3e99b2399b57",
    "submitter": {
        "id": 1828,
        "url": "https://patches.dpdk.org/api/people/1828/?format=api",
        "name": "Ling, WeiX",
        "email": "weix.ling@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20201218113632.367094-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 14358,
            "url": "https://patches.dpdk.org/api/series/14358/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=14358",
            "date": "2020-12-18T11:36:32",
            "name": "[V1] tests/unit_tests_loopback:rm exists file before cp",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/14358/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/85386/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/85386/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 AC71DA09F6;\n\tFri, 18 Dec 2020 04:41:10 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9F5E3CA2C;\n\tFri, 18 Dec 2020 04:41:08 +0100 (CET)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id DBE43CA2A\n for <dts@dpdk.org>; Fri, 18 Dec 2020 04:41:06 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Dec 2020 19:41:04 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.222])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Dec 2020 19:41:03 -0800"
        ],
        "IronPort-SDR": [
            "\n SssZinfVR4mT/8UWaK6iMx5bbkFKBeEzD5YIlpyYot8wpSl5nVEzF2hI46SFJqf1FSKyHny0hK\n k5m3sjm9YMmw==",
            "\n 6259FUuPpiDqEvWkzVfp73mrnyueAi7AoRaFYuI8kmzEGh345G2LCSwrlbbfd+i2LIgv9CtQTW\n ke12CyTIrUow=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9838\"; a=\"175475784\"",
            "E=Sophos;i=\"5.78,428,1599548400\"; d=\"scan'208\";a=\"175475784\"",
            "E=Sophos;i=\"5.78,428,1599548400\"; d=\"scan'208\";a=\"560958171\""
        ],
        "From": "Ling Wei <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Ling Wei <weix.ling@intel.com>",
        "Date": "Fri, 18 Dec 2020 11:36:32 +0000",
        "Message-Id": "<20201218113632.367094-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [PATCH V1] tests/unit_tests_loopback:rm exists file before cp",
        "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": "rm exists file before cp\n\nSigned-off-by: Ling Wei <weix.ling@intel.com>\n---\n tests/TestSuite_unit_tests_loopback.py | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/tests/TestSuite_unit_tests_loopback.py b/tests/TestSuite_unit_tests_loopback.py\nindex 6babc2a1..0198a913 100644\n--- a/tests/TestSuite_unit_tests_loopback.py\n+++ b/tests/TestSuite_unit_tests_loopback.py\n@@ -71,6 +71,7 @@ class TestUnitTestsLoopback(TestCase):\n         self.max_traffic_burst = self.get_max_traffic_burst()\n         self.dut.send_expect(\"sed -i -e 's/#define MAX_TRAFFIC_BURST              %s/#define MAX_TRAFFIC_BURST              32/' app/test/test_pmd_perf.c\" % self.max_traffic_burst, \"# \", 30)\n         self.tmp_path = '/tmp/test_pmd_perf.c'\n+        self.dut.send_expect(\"rm -fr %s\" % self.tmp_path, \"# \")\n         self.dut.send_expect(\"cp app/test/test_pmd_perf.c %s\" % self.tmp_path, \"# \")\n \n     def set_up(self):\n@@ -133,6 +134,7 @@ class TestUnitTestsLoopback(TestCase):\n         \"\"\"\n         Run after each test case.\n         \"\"\"\n+        self.dut.send_expect(\"rm -fr app/test/test_pmd_perf.c\", \"# \")\n         self.dut.send_expect(\"cp %s app/test/test_pmd_perf.c\" % self.tmp_path, \"# \")\n         self.dut.kill_all()\n \n@@ -140,7 +142,6 @@ class TestUnitTestsLoopback(TestCase):\n         \"\"\"\n         Run after each test suite.\n         \"\"\"\n-        self.dut.send_expect(\"cp %s app/test/test_pmd_perf.c\" % self.tmp_path, \"# \")\n         self.dut.send_expect(\"sed -i -e 's/#define MAX_TRAFFIC_BURST              32/#define MAX_TRAFFIC_BURST              %s/' app/test/test_pmd_perf.c\" % self.max_traffic_burst, \"# \", 30)\n         self.dut.build_install_dpdk(self.target)        \n         self.dut.kill_all()\n",
    "prefixes": [
        "V1"
    ]
}