get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810221,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/810221/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20170905162137.18087-1-yann.morin.1998@free.fr/",
    "project": {
        "id": 27,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/27/?format=api",
        "name": "Buildroot development",
        "link_name": "buildroot",
        "list_id": "buildroot.buildroot.org",
        "list_email": "buildroot@buildroot.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170905162137.18087-1-yann.morin.1998@free.fr>",
    "list_archive_url": null,
    "date": "2017-09-05T16:21:37",
    "name": "support/tests: use relative test_dir",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "45b05d9735f21b1dfd9a847aba90289366cc321a",
    "submitter": {
        "id": 13903,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/13903/?format=api",
        "name": "Yann E. MORIN",
        "email": "yann.morin.1998@free.fr"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20170905162137.18087-1-yann.morin.1998@free.fr/mbox/",
    "series": [
        {
            "id": 1607,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/1607/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=1607",
            "date": "2017-09-05T16:21:37",
            "name": "support/tests: use relative test_dir",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1607/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810221/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810221/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<buildroot-bounces@busybox.net>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "buildroot@lists.busybox.net"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "buildroot@osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"F0sdbZgB\"; dkim-atps=neutral"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmsRk67mFz9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 02:21:53 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 727C786BC4;\n\tTue,  5 Sep 2017 16:21:50 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id jg2ax2KsNB6k; Tue,  5 Sep 2017 16:21:48 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 964F386B2C;\n\tTue,  5 Sep 2017 16:21:48 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id D2A0C1C0DE1\n\tfor <buildroot@lists.busybox.net>;\n\tTue,  5 Sep 2017 16:21:47 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id CB8E630831\n\tfor <buildroot@lists.busybox.net>;\n\tTue,  5 Sep 2017 16:21:47 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id HPqV-DWGJomf for <buildroot@lists.busybox.net>;\n\tTue,  5 Sep 2017 16:21:47 +0000 (UTC)",
            "from mail-wr0-f194.google.com (mail-wr0-f194.google.com\n\t[209.85.128.194])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 08522307DA\n\tfor <buildroot@buildroot.org>; Tue,  5 Sep 2017 16:21:47 +0000 (UTC)",
            "by mail-wr0-f194.google.com with SMTP id p14so1686331wrg.5\n\tfor <buildroot@buildroot.org>; Tue, 05 Sep 2017 09:21:46 -0700 (PDT)",
            "from localhost.localdomain\n\t(2a01cb088610730079afc3fd6aa313b9.ipv6.abo.wanadoo.fr.\n\t[2a01:cb08:8610:7300:79af:c3fd:6aa3:13b9])\n\tby smtp.gmail.com with ESMTPSA id\n\tr188sm994471wmb.41.2017.09.05.09.21.43\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 05 Sep 2017 09:21:43 -0700 (PDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id;\n\tbh=z2NmfRjFyHkAYLL8bU5JFoAYlzne1t+ULbEOqPNri64=;\n\tb=F0sdbZgBLOwkSsm5/qe5rDcSlIDAhrERrz+Z2bvuouJtm4uGUo68lGKaOuflMikrh3\n\tQ3V6bjAjuXXM4KhEX64Q6JGC7SztEqf4g7WVg5/MOKt9m5gvzQ5ODEZ4fhn37i1yyReu\n\t0ly459VYFuEq8ha1YNR7WSXN6tQ+DQYddkcD67WiClTPNwD/3yeFcbLPB+moLtWoCR3M\n\tNhCQ22XvNLE1dWq//O7NuphS523pyxTsJgAhT8RXybTi71FD9jHFjl0DDLkXdNWtgnCa\n\tpcCp5lbMTmUU80dhROpKApyopfMBgxvJmrvR6HwRk6O6wyIfgdWWz7h8EBQdX9I71FGz\n\tSfxA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=z2NmfRjFyHkAYLL8bU5JFoAYlzne1t+ULbEOqPNri64=;\n\tb=pB9mBaVEBQYl6coiZ7aDcbkc76vya/+3dK5Vo46W/P6zjZVGDPvQUMD3bVAKZ3vfJD\n\to7fS+1RWoM5pNNDSAz+rncVLNqobBJ9wyKzNLpoMs/jSN6rt1cCJonhvrg6QuL/AeYGe\n\tlMqyWKL/vWRnzXeU+Kf0cYAUBiVwiGP1qGf7AyG9fHe9SLU9ySZw4ySp+fSdLsqGvOmu\n\tUX8iKuFoXiZrT48QaGc85YQLcUI1bUNHMNNhq25ps9+IYNcAJc9+KfRQbi+5ZJugA/ol\n\tQB093wwGz/1sqHUIUSJDfLoSIaXyInnZTTbGODfS6jNO/fuGVNMU4GqtJ7jbCX7SesIO\n\tM82g==",
        "X-Gm-Message-State": "AHPjjUgs+AFAO/EFbpmLlKcrmjrSycI6qd2GvXS+XG+btylgsLmoJhfe\n\tHdZyTyigqYTt0Y1j",
        "X-Google-Smtp-Source": "ADKCNb5+KCXHmo4IkQb3LnzUBlEVCKkEz7gwjqvlcdquxFINT0SEcmecbsUCnRHrL9JPLBpkmGswMg==",
        "X-Received": "by 10.223.161.22 with SMTP id o22mr2553737wro.99.1504628505092; \n\tTue, 05 Sep 2017 09:21:45 -0700 (PDT)",
        "From": "\"Yann E. MORIN\" <yann.morin.1998@free.fr>",
        "To": "buildroot@buildroot.org",
        "Date": "Tue,  5 Sep 2017 18:21:37 +0200",
        "Message-Id": "<20170905162137.18087-1-yann.morin.1998@free.fr>",
        "X-Mailer": "git-send-email 2.11.0",
        "Cc": "Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\t\"Yann E. MORIN\" <yann.morin.1998@free.fr>,\n\tRicardo Martincoski <ricardo.martincoski@gmail.com>",
        "Subject": "[Buildroot] [PATCH] support/tests: use relative test_dir",
        "X-BeenThere": "buildroot@busybox.net",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>",
        "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>",
        "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>",
        "List-Post": "<mailto:buildroot@busybox.net>",
        "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>",
        "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "buildroot-bounces@busybox.net",
        "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>"
    },
    "content": "When we list the available tests, we use test_dir, which is set from\nthe path of the script. However, when we run the tests, we use the\nhard-coded path.\n\nDitto to find the config file.\n\nFor consistency, always use test_dir.\n\nSigned-off-by: \"Yann E. MORIN\" <yann.morin.1998@free.fr>\nCc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\nCc: Ricardo Martincoski <ricardo.martincoski@gmail.com>\n---\n support/testing/run-tests | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/support/testing/run-tests b/support/testing/run-tests\nindex 95c1565f72..ae0bd336b5 100755\n--- a/support/testing/run-tests\n+++ b/support/testing/run-tests\n@@ -108,8 +108,8 @@ def main():\n \n     nose2_args = [\"-v\",\n                   \"-N\", str(args.testcases),\n-                  \"-s\", \"support/testing\",\n-                  \"-c\", \"support/testing/conf/unittest.cfg\"]\n+                  \"-s\", test_dir,\n+                  \"-c\", os.path.join(test_dir, \"conf/unittest.cfg\")]\n \n     if len(args.testname) != 0:\n         nose2_args += args.testname\n",
    "prefixes": []
}