get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77893,
    "url": "http://patches.dpdk.org/api/patches/77893/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/1600254387-20435-1-git-send-email-xix.zhang@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": "<1600254387-20435-1-git-send-email-xix.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/1600254387-20435-1-git-send-email-xix.zhang@intel.com",
    "date": "2020-09-16T11:06:27",
    "name": "[V1] tests/TestSuite_ieee1588:Modify sed command",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "b10aa29b830dea9773c60ea7430e6ea4811b28c3",
    "submitter": {
        "id": 1728,
        "url": "http://patches.dpdk.org/api/people/1728/?format=api",
        "name": "Zhang, XiX",
        "email": "xix.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/1600254387-20435-1-git-send-email-xix.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 12276,
            "url": "http://patches.dpdk.org/api/series/12276/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=12276",
            "date": "2020-09-16T11:06:27",
            "name": "[V1] tests/TestSuite_ieee1588:Modify sed command",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12276/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77893/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/77893/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 2A310A04C7;\n\tWed, 16 Sep 2020 13:05:00 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E39D41C234;\n\tWed, 16 Sep 2020 13:04:59 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id 288A21C232\n for <dts@dpdk.org>; Wed, 16 Sep 2020 13:04:57 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Sep 2020 04:04:56 -0700",
            "from unknown (HELO localhost.localdomain.sh.intel.com)\n ([10.240.182.150])\n by orsmga001.jf.intel.com with ESMTP; 16 Sep 2020 04:04:55 -0700"
        ],
        "IronPort-SDR": [
            "\n XG/VTkPugd5LzZiwjjslNWNOm7j/dMhi9H6oDWhYplxzvQQ8V2TnGhIokc8g4PZs8L1TgxAE7w\n F4ZLRihc6gKA==",
            "\n 4MyJJapvjP5WSj+tkYj26JqM5iwf4NJwGGNj3xOp4Z14lNOJ7qg6TUmr2cekW6HipEuPXkUyYe\n WhYiMHGG5SMw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9745\"; a=\"159494143\"",
            "E=Sophos;i=\"5.76,432,1592895600\"; d=\"scan'208\";a=\"159494143\"",
            "E=Sophos;i=\"5.76,432,1592895600\"; d=\"scan'208\";a=\"380132846\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "xizhan4x <xix.zhang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "xizhan4x <xix.zhang@intel.com>",
        "Date": "Wed, 16 Sep 2020 19:06:27 +0800",
        "Message-Id": "<1600254387-20435-1-git-send-email-xix.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Subject": "[dts] [PATCH V1] tests/TestSuite_ieee1588:Modify sed command",
        "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": "Modify sed command \n\n\nSigned-off-by: xizhan4x <xix.zhang@intel.com>\n---\n tests/TestSuite_ieee1588.py | 15 ++++++++++-----\n 1 file changed, 10 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_ieee1588.py b/tests/TestSuite_ieee1588.py\nindex 19f17d1..8632286 100644\n--- a/tests/TestSuite_ieee1588.py\n+++ b/tests/TestSuite_ieee1588.py\n@@ -56,6 +56,7 @@ class TestIeee1588(TestCase):\n         # Change the config file to support IEEE1588 and recompile the package.\n         self.dut.send_expect(\n             \"sed -i -e 's/IEEE1588=n$/IEEE1588=y/' config/common_base\", \"# \", 30)\n+        self.dut.set_build_options({'RTE_LIBRTE_IEEE1588': 'y'})\n         self.dut.skip_setup = False\n         self.dut.build_install_dpdk(self.target)\n \n@@ -91,18 +92,21 @@ class TestIeee1588(TestCase):\n         port = self.tester.get_local_port(dutPorts[0])\n         itf = self.tester.get_interface(port)\n \n-        self.tester.send_expect(\n-            \"tcpdump -i %s -e ether src %s\" % (itf, mac), \"tcpdump\", 20)\n         self.send_session = self.tester.create_session('send_session')\n+        self.send_session.send_expect(\n+            \"tcpdump -i %s -e ether src %s\" % (itf, mac), \"tcpdump\", 20)\n+\n         setattr(self.send_session, 'tmp_file', self.tester.tmp_file)\n+        setattr(self.send_session, 'tmp_file', self.tester.get_session_output)\n         pkt = Packet(pkt_type='TIMESYNC')\n         pkt.config_layer('ether', {'dst': mac})\n-        pkt.send_pkt(self.send_session, tx_port=itf)\n+        pkt.send_pkt(self.tester, tx_port=itf)\n         time.sleep(1)\n+\n+        out = self.send_session.get_session_output(timeout=20)\n+        self.send_session.send_expect(\"^C\", \"# \", 20)\n         self.send_session.close()\n-        out = self.tester.get_session_output(timeout=20)\n \n-        self.tester.send_expect(\"^C\", \"# \", 20)\n \n         self.verify(\"0x88f7\" in out, \"Ether type is not PTP\")\n \n@@ -171,4 +175,5 @@ class TestIeee1588(TestCase):\n         # Restore the config file and recompile the package.\n         self.dut.send_expect(\n             \"sed -i -e 's/IEEE1588=y$/IEEE1588=n/' config/common_base\", \"# \", 30)\n+        self.dut.set_build_options({'RTE_LIBRTE_IEEE1588': 'n'})\n         self.dut.build_install_dpdk(self.target)\n",
    "prefixes": [
        "V1"
    ]
}