get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 93848,
    "url": "https://patches.dpdk.org/api/patches/93848/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210603092151.1847-1-leweix.yang@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": "<20210603092151.1847-1-leweix.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210603092151.1847-1-leweix.yang@intel.com",
    "date": "2021-06-03T09:21:51",
    "name": "[V1] tests:fix some suites impacted by Strip prompt in send_expect",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "32b4d7cb7f4623a2fbc3f45bea768026434d1059",
    "submitter": {
        "id": 2225,
        "url": "https://patches.dpdk.org/api/people/2225/?format=api",
        "name": "Lewei Yang",
        "email": "leweix.yang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210603092151.1847-1-leweix.yang@intel.com/mbox/",
    "series": [
        {
            "id": 17222,
            "url": "https://patches.dpdk.org/api/series/17222/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=17222",
            "date": "2021-06-03T09:21:51",
            "name": "[V1] tests:fix some suites impacted by Strip prompt in send_expect",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/17222/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/93848/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/93848/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 8CF09A0A0A;\n\tThu,  3 Jun 2021 11:17:16 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5644F40E78;\n\tThu,  3 Jun 2021 11:17:16 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 2C5BE40DF6\n for <dts@dpdk.org>; Thu,  3 Jun 2021 11:17:14 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Jun 2021 02:17:12 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.80])\n by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Jun 2021 02:17:11 -0700"
        ],
        "IronPort-SDR": [
            "\n 2CBPnxhhEHudaGcT3i5YhNFoWRNB1p04Q/S8gkjBU0f0JQEEIkGMmoDGqqNfYLbWmAU4MS+0SD\n G/IO3IbMHg5Q==",
            "\n g+r7PVSZbvpIT1YnN+Q7mqhPLM2qnjttz2AYzyLQCRA1GNrcLmXj+IJZezEnE+OUFlpHq+Zz0v\n IJBDm7hyXgJw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10003\"; a=\"267868541\"",
            "E=Sophos;i=\"5.83,244,1616482800\"; d=\"scan'208\";a=\"267868541\"",
            "E=Sophos;i=\"5.83,244,1616482800\"; d=\"scan'208\";a=\"480151776\""
        ],
        "From": "Yang Leweix <leweix.yang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "leweix.yang@intel.com",
        "Date": "Thu,  3 Jun 2021 17:21:51 +0800",
        "Message-Id": "<20210603092151.1847-1-leweix.yang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V1] tests:fix some suites impacted by Strip prompt in\n send_expect",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "fixs following suite impacted by commit f498f5:\n    * flow_classify_softnic\n\t* test_ipv4_acl_jump\n\t* test_ipv4_acl_table\n\t* test_ipv6_hash_jump\n    * unit_tests_loopback\n\t* test_link_mode\n\t* test_loopback_mode\n    * distributor\n\t* maximum_workers  \n\nSigned-off-by: Yang Leweix <leweix.yang@intel.com>\n---\n tests/TestSuite_distributor.py           | 2 +-\n tests/TestSuite_flow_classify_softnic.py | 2 +-\n tests/TestSuite_unit_tests_loopback.py   | 2 +-\n 3 files changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_distributor.py b/tests/TestSuite_distributor.py\nindex 0f61cc71..cd88977d 100644\n--- a/tests/TestSuite_distributor.py\n+++ b/tests/TestSuite_distributor.py\n@@ -165,7 +165,7 @@ class TestDistributor(TestCase):\n         self.verify(len(self.dut_ports) >= 1, \"Not enough ports\")\n \n         cmd_fmt = \"%s %s -- -p 0x1\"\n-        out = self.dut.send_expect(\"sed -n '/#define RTE_DISTRIB_MAX_WORKERS/p' lib/distributor/distributor_private.h\", \"# \")\n+        out = self.dut.send_expect(\"sed -n '/#define RTE_DISTRIB_MAX_WORKERS/p' lib/distributor/distributor_private.h\", \"# \", trim_whitespace=False)\n         reg_match = r\"#define RTE_DISTRIB_MAX_WORKERS (.*)\"\n         m = re.match(reg_match, out)\n         self.verify(m, \"Can't find maximum worker number\")\ndiff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py\nindex db7a81dd..e5937289 100644\n--- a/tests/TestSuite_flow_classify_softnic.py\n+++ b/tests/TestSuite_flow_classify_softnic.py\n@@ -129,7 +129,7 @@ class TestFlowClassifySoftnic(TestCase):\n         \"\"\"\n         param = \"\"\n         direct_param = r\"(\\s+)\\[ (\\S+) in\\|out\\|inout \\]\"\n-        out = self.tester.send_expect('tcpdump -h', '# ')\n+        out = self.tester.send_expect('tcpdump -h', '# ', trim_whitespace=False)\n         for line in out.split('\\n'):\n             m = re.match(direct_param, line)\n             if m:\ndiff --git a/tests/TestSuite_unit_tests_loopback.py b/tests/TestSuite_unit_tests_loopback.py\nindex 0198a913..a0467378 100644\n--- a/tests/TestSuite_unit_tests_loopback.py\n+++ b/tests/TestSuite_unit_tests_loopback.py\n@@ -81,7 +81,7 @@ class TestUnitTestsLoopback(TestCase):\n         pass\n \n     def get_max_traffic_burst(self):\n-        pmd_file = self.dut.send_expect(\"cat app/test/test_pmd_perf.c\", \"# \", 30)\n+        pmd_file = self.dut.send_expect(\"cat app/test/test_pmd_perf.c\", \"# \", 30, trim_whitespace=False)\n         result_scanner = r\"#define MAX_TRAFFIC_BURST\\s+([0-9]+)\"\n         scanner = re.compile(result_scanner, re.DOTALL)\n         m = scanner.search(pmd_file)\n",
    "prefixes": [
        "V1"
    ]
}