get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76313,
    "url": "http://patches.dpdk.org/api/patches/76313/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20200902091510.6043-7-weix.xie@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": "<20200902091510.6043-7-weix.xie@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20200902091510.6043-7-weix.xie@intel.com",
    "date": "2020-09-02T09:15:08",
    "name": "[6/8] tests/TestSuite_vf_interrupt_pmd:support meson build method",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "bb3a20334d769a4cc9c4968d7038e73ae7716a7c",
    "submitter": {
        "id": 1686,
        "url": "http://patches.dpdk.org/api/people/1686/?format=api",
        "name": "Xie, WeiX",
        "email": "weix.xie@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20200902091510.6043-7-weix.xie@intel.com/mbox/",
    "series": [
        {
            "id": 11899,
            "url": "http://patches.dpdk.org/api/series/11899/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=11899",
            "date": "2020-09-02T09:15:04",
            "name": "support meson build method",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/11899/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76313/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/76313/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 0A208A04B7;\n\tWed,  2 Sep 2020 11:14:23 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id ED3F31C0C2;\n\tWed,  2 Sep 2020 11:14:22 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 955BA1C07D\n for <dts@dpdk.org>; Wed,  2 Sep 2020 11:14:20 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Sep 2020 02:14:20 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.80])\n by fmsmga001.fm.intel.com with ESMTP; 02 Sep 2020 02:14:18 -0700"
        ],
        "IronPort-SDR": [
            "\n HrhneqI7rae6FHmdI7EFgpezK2KE45/iWNtJuT8iD8ZtTdsv+NsDV/ZfUynEzjk1XIZylTFF8A\n EaAWF09keeaQ==",
            "\n L0PcqOayCG4JUCZLqdh77zqoAaaBatFcYtnhSoX7806Gpgkg4M2SW5gvLpoh0b3t5Y+Rj8kQd5\n ZEC4FsHKjUVw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9731\"; a=\"158348278\"",
            "E=Sophos;i=\"5.76,381,1592895600\"; d=\"scan'208\";a=\"158348278\"",
            "E=Sophos;i=\"5.76,381,1592895600\"; d=\"scan'208\";a=\"405099318\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Xie wei <weix.xie@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Xie wei <weix.xie@intel.com>",
        "Date": "Wed,  2 Sep 2020 17:15:08 +0800",
        "Message-Id": "<20200902091510.6043-7-weix.xie@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200902091510.6043-1-weix.xie@intel.com>",
        "References": "<20200902091510.6043-1-weix.xie@intel.com>",
        "Subject": "[dts] [dts 6/8] tests/TestSuite_vf_interrupt_pmd:support meson\n\tbuild method",
        "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": "Signed-off-by: Xie wei <weix.xie@intel.com>\n---\n tests/TestSuite_vf_interrupt_pmd.py | 22 +++++++---------------\n 1 file changed, 7 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vf_interrupt_pmd.py b/tests/TestSuite_vf_interrupt_pmd.py\nindex 55a8e3d..ac30950 100644\n--- a/tests/TestSuite_vf_interrupt_pmd.py\n+++ b/tests/TestSuite_vf_interrupt_pmd.py\n@@ -65,8 +65,6 @@ class TestVfInterruptPmd(TestCase):\n         self.port_mask = utils.create_mask(ports)\n         self.core_mask_user = utils.create_mask(self.core_list[0:1])\n \n-        self.path = \"./examples/l3fwd-power/build/l3fwd-power\"\n-\n         testport_0 = self.tester.get_local_port(self.dut_ports[0])\n         self.rx_intf_0 = self.tester.get_interface(testport_0)\n         self.tester_mac = self.tester.get_mac(testport_0)\n@@ -94,6 +92,8 @@ class TestVfInterruptPmd(TestCase):\n                 \"sed -i -e '/DEV_RX_OFFLOAD_CHECKSUM,/d' \\\n                 ./examples/l3fwd-power/main.c\", \"#\", 10)\n         out = use_dut.send_expect(\"make -C examples/l3fwd-power\", \"#\")\n+        out = use_dut.build_dpdk_apps(\"./examples/l3fwd-power\")\n+        self.path = use_dut.apps_name['l3fwd-power']\n         self.verify(\"Error\" not in out, \"compilation error\")\n \n     def send_packet(self, mac, testinterface, use_dut):\n@@ -127,9 +127,7 @@ class TestVfInterruptPmd(TestCase):\n         \"\"\"\n         begin l3fwd-power\n         \"\"\"\n-        cmd_vhost_net = \"./examples/l3fwd-power/build/l3fwd-power -n %d -c %s\" % (\n-                use_dut.get_memory_channels(), self.core_mask_user) + \\\n-                        \" -- -P -p 1 --config='(0,0,%s)'\" % self.core_user\n+        cmd_vhost_net = self.path + \"-n %d -c %s\" % (use_dut.get_memory_channels(), self.core_mask_user) + \" -- -P -p 1 --config='(0,0,%s)'\" % self.core_user\n         try:\n             self.logger.info(\"Launch l3fwd_sample sample:\")\n             self.out = use_dut.send_expect(cmd_vhost_net, \"L3FWD_POWER\", 60)\n@@ -149,8 +147,7 @@ class TestVfInterruptPmd(TestCase):\n             if config_info != \"\":\n                 config_info += ','\n             config_info += '(0,%d,%d)' % (queue, queue)\n-        cmd_vhost_net = \"./examples/l3fwd-power/build/l3fwd-power -l 0-%d -n 4 -- -P -p 0x1\" % \\\n-                        queue + \" --config='%s'\" % config_info\n+        cmd_vhost_net = self.path + \"-l 0-%d -n 4 -- -P -p 0x1\" % queue + \" --config='%s'\" % config_info\n         try:\n             self.logger.info(\"Launch l3fwd_sample sample:\")\n             self.out = use_dut.send_expect(cmd_vhost_net, \"L3FWD_POWER\", 60)\n@@ -239,10 +236,7 @@ class TestVfInterruptPmd(TestCase):\n         core_user = core_list[0]\n         core_mask_user = utils.create_mask(core_list)\n \n-        cmd = self.path + \\\n-              \" -c %s -n %d -- -P  -p 0x01 --config='(0,0,%s)'\" % (\n-                  core_mask_user, self.vm0_dut.get_memory_channels(), core_user)\n-\n+        cmd = self.path + \"-c %s -n %d -- -P  -p 0x01 --config='(0,0,%s)'\" % (core_mask_user, self.vm0_dut.get_memory_channels(), core_user)\n         self.vm0_dut.send_expect(cmd, \"L3FWD_POWER\", 60)\n         self.send_packet(self.vf0_mac, self.rx_intf_0, self.vm0_dut)\n         self.destroy_vm_env()\n@@ -365,9 +359,7 @@ class TestVfInterruptPmd(TestCase):\n             if config_info != \"\":\n                 config_info += ','\n             config_info += '(0,%d,%d)' % (queue, queue)\n-        cmd = \"./examples/l3fwd-power/build/l3fwd-power -c %s -n 4 -- -P -p 0x1\" \\\n-              % core_mask_user + \\\n-        \" --config='%s'\" % config_info\n+        cmd = self.path + \"-c %s -n 4 -- -P -p 0x1\" % core_mask_user + \" --config='%s'\" % config_info\n         self.vm0_dut.send_expect(cmd, \"L3FWD_POWER\", 60)\n         time.sleep(1)\n         try:\n@@ -397,7 +389,7 @@ class TestVfInterruptPmd(TestCase):\n         \"\"\"\n         Run after each test case.\n         \"\"\"\n-        self.dut.send_expect(\"killall l3fwd-power\", \"# \", 10, alt_session=True)\n+        self.dut.send_expect(\"killall %s\" % self.path.strip().split('/')[-1], \"# \", 10, alt_session=True)\n \n     def tear_down_all(self):\n         \"\"\"\n",
    "prefixes": [
        "6/8"
    ]
}