get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74484,
    "url": "https://patches.dpdk.org/api/patches/74484/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20200720172358.49460-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": "<20200720172358.49460-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20200720172358.49460-1-weix.ling@intel.com",
    "date": "2020-07-20T17:23:58",
    "name": "[V1] tests/TestSuite_distributor: Fix test_perf_distributor case result is 0",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c4c095ef97de5456b4eb6cc09617514415bc33db",
    "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/20200720172358.49460-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 11166,
            "url": "https://patches.dpdk.org/api/series/11166/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=11166",
            "date": "2020-07-20T17:23:58",
            "name": "[V1] tests/TestSuite_distributor: Fix test_perf_distributor case result is 0",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11166/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74484/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/74484/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 6CF6DA0540;\n\tMon, 20 Jul 2020 11:28:15 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5A0372BF3;\n\tMon, 20 Jul 2020 11:28:15 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 701F51DBB\n for <dts@dpdk.org>; Mon, 20 Jul 2020 11:28:13 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Jul 2020 02:28:12 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.222])\n by orsmga002.jf.intel.com with ESMTP; 20 Jul 2020 02:28:11 -0700"
        ],
        "IronPort-SDR": [
            "\n sJP4N3PmYqOkvVRVGeoh1PTMpcKIuvaVLeY1mrBSIgdDSjr8YE4RV0rJulURWawfYmBYrpRX30\n 9TfeaA5U/SuA==",
            "\n 2OON4mQnZCIOwST/XOlZmVIjNeHHngNaysh+CtRaIO1yHbMvtjS9VcIsIwGUPSYIklup9Q+iS9\n mw1B2y2Q9KyQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9687\"; a=\"147833185\"",
            "E=Sophos;i=\"5.75,374,1589266800\"; d=\"scan'208\";a=\"147833185\"",
            "E=Sophos;i=\"5.75,374,1589266800\"; d=\"scan'208\";a=\"301217367\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "lingwei <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "lingwei <weix.ling@intel.com>",
        "Date": "Mon, 20 Jul 2020 17:23:58 +0000",
        "Message-Id": "<20200720172358.49460-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V1] tests/TestSuite_distributor: Fix\n\ttest_perf_distributor case result is 0",
        "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": "Fix test_perf_distributor case result is 0.\n\nSigned-off-by: lingwei <weix.ling@intel.com>\n---\n tests/TestSuite_distributor.py | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_distributor.py b/tests/TestSuite_distributor.py\nindex aaad6c7..9ccc761 100644\n--- a/tests/TestSuite_distributor.py\n+++ b/tests/TestSuite_distributor.py\n@@ -138,8 +138,6 @@ class TestDistributor(TestCase):\n \n             self.dut.send_expect(cmd, \"doing packet RX\", timeout=30)\n \n-            self.app_output = self.dut.session.get_session_before(timeout=2)\n-\n             # clear streams before add new streams\n             self.tester.pktgen.clear_streams()\n             # run packet generator\n@@ -147,6 +145,9 @@ class TestDistributor(TestCase):\n                                     None, self.tester.pktgen)\n             _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams)\n \n+            # get aap output after sending packet\n+            self.app_output = self.dut.session.get_session_before(timeout=2)\n+\n             self.dut.send_expect(\"^C\", \"#\")\n \n             pps /= 1000000.0\n@@ -240,6 +241,8 @@ class TestDistributor(TestCase):\n         \"\"\"\n         # skip the last one, we use the next one\n         output = output[:output.rfind(\"RX Thread\")]\n+        # skip the last two, we use the next one\n+        output = output[:output.rfind(\"RX Thread\")]\n         output = output[output.rfind(\"RX Thread\"):]\n         rec_rate = 0.0\n         enq_rate = 0.0\n",
    "prefixes": [
        "V1"
    ]
}