get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2206443,
    "url": "http://patchwork.ozlabs.org/api/patches/2206443/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260306181304.2426352-2-sjg@chromium.org/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260306181304.2426352-2-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2026-03-06T18:12:29",
    "name": "[v2,01/23] binman: test: Capture output from tests with warnings",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "facc19f711a4641486408a2d355baa70ea1b3708",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 3184,
        "url": "http://patchwork.ozlabs.org/api/users/3184/?format=api",
        "username": "sjg",
        "first_name": "Simon",
        "last_name": "Glass",
        "email": "sjg@chromium.org"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260306181304.2426352-2-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 494765,
            "url": "http://patchwork.ozlabs.org/api/series/494765/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=494765",
            "date": "2026-03-06T18:12:28",
            "name": "binman: test: Organise test files into subdirectories",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/494765/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2206443/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2206443/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=Sde7sfaY;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org\n header.b=\"Sde7sfaY\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=chromium.org",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=sjg@chromium.org"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fSF0B70VQz1xyN\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 07 Mar 2026 05:13:46 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7610683F2D;\n\tFri,  6 Mar 2026 19:13:34 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id E4D8B8382A; Fri,  6 Mar 2026 19:13:33 +0100 (CET)",
            "from mail-qk1-x732.google.com (mail-qk1-x732.google.com\n [IPv6:2607:f8b0:4864:20::732])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 8A303838FA\n for <u-boot@lists.denx.de>; Fri,  6 Mar 2026 19:13:31 +0100 (CET)",
            "by mail-qk1-x732.google.com with SMTP id\n af79cd13be357-8cb38e86cf2so1009604785a.1\n for <u-boot@lists.denx.de>; Fri, 06 Mar 2026 10:13:31 -0800 (PST)",
            "from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8cd6f5736c0sm155930885a.49.2026.03.06.10.13.28\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 06 Mar 2026 10:13:29 -0800 (PST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=chromium.org; s=google; t=1772820810; x=1773425610; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=GpsbSKbLtLR/B+206RE5jFQjNv5BuxuN/uC6rRIIDA8=;\n b=Sde7sfaY4O14Z1JXgSV2nyK6ueQkGZOm3UGjInPsiHoXqRYkgSlvPNljapUrgU2M2K\n GvA3ipiJVoISVpalFrSq3UxRfMvlXiDgs4pXWe4k1njZGbmt4W2cTAohtYU2YJk3RKIK\n jMceubIN9csmfI78Yl5Q640DedLkgeOtHNjoY=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1772820810; x=1773425610;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=GpsbSKbLtLR/B+206RE5jFQjNv5BuxuN/uC6rRIIDA8=;\n b=qiwrZNuWPlVYlZDqV7ABw6rMbxzNVTeAOD56sKEhO5L7x4TmFHHx0M/XpI11XEfRU2\n R4o820gGuHpOW5gtZYs4Xr2LuoKBTulC+NZZ77v3tTMJ/MWDGFopWicER0WXjPDJZ/sc\n Kwwi5PHlTczGOlNzMaJC/KXXQzJxeo4D4nOj77Kwrgq6beBW0o+xgs0IATPHqbiABFf5\n ZgKjAegE8i8xjLDmO9vvtRKEccWCb+Mag0lbFI5Af35Nj1tussuoccwduFUFoQWmWrWq\n eOuhF3Ybt/cbpaOBOZDxCHIDT7PsbEUbeFoosjr7+AEQ7OXR5b9OVxTCbHpiAoI30tvv\n T/2Q==",
        "X-Gm-Message-State": "AOJu0YzfkOTz0pe4WV7fS2Oc7uKdJDN5eHpJpJEA2uf7VssIB43IrZ4Y\n WN+DmeMFw1jipKrpBKDOc8fbuFEk73obBCb78RSP+Z6wOKg3aAJUXbuij5Ij8wSrLeyV9ZyZPp7\n bJYg=",
        "X-Gm-Gg": "ATEYQzz5sZxA3hXD68/ri23lT2ISRYKrUi8FvcubrUu1Nk0zwGJLJIQeITzhlJa+dp8\n cBGYlXgol5skww/sqkWdKBpI+0DAx9v7/nXg6oYOHt7Al6cwiw9EA5+66iq3BLhTwmR8apCiK+1\n adlo9AIBcyWSkivOTy6srCsnCr0VpTG9B5FZ05tVLb+Sq7HlGkSLGH5RjzOYilW4K7qFLpNf2lp\n JfpUtavcwECKT9RPztda6xkDNLtykalei9J14V6ascPL84uH1yDex3vJtmEu7H01lrzfOdMG0rN\n DH1DJ8hcMBmI/xZTqt3oPJNACBjyxWsxSZibg5TDRZEySClEnj3SYXgDtbl1LK+HFUO0PQV+8lJ\n Ajry6H3Z6xULODR5bf1Uryr/DQ+cx67BJqyvRGKtwTlWAXblz/+Or0tMoquxQwgddsNTX4hDVr9\n zYIKTnS5X/sAqI1XmdTRVFpCzXnCqD",
        "X-Received": "by 2002:a05:620a:4593:b0:8c6:6e2b:ac1a with SMTP id\n af79cd13be357-8cd6d38f89bmr391422785a.28.1772820809832;\n Fri, 06 Mar 2026 10:13:29 -0800 (PST)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Tom Rini <trini@konsulko.com>, Quentin Schulz <quentin.schulz@cherry.de>,\n Simon Glass <simon.glass@canonical.com>,\n Alper Nebi Yasak <alpernebiyasak@gmail.com>, Bryan Brattlof <bb@ti.com>,\n Neha Malcom Francis <n-francis@ti.com>, Peng Fan <peng.fan@nxp.com>,\n Philippe Reynes <philippe.reynes@softathome.com>,\n Simon Glass <sjg@chromium.org>,\n Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>,\n Yannic Moog <y.moog@phytec.de>",
        "Subject": "[PATCH v2 01/23] binman: test: Capture output from tests with\n warnings",
        "Date": "Fri,  6 Mar 2026 11:12:29 -0700",
        "Message-ID": "<20260306181304.2426352-2-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260306181304.2426352-1-sjg@chromium.org>",
        "References": "<20260306181304.2426352-1-sjg@chromium.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "From: Simon Glass <simon.glass@canonical.com>\n\nTests are supposed to run silently and capture any output produced.\n\nFix testRemoveTemplate() so that the message about the missing openssl\nis captured, along with the invalid-images message.\n\nFix testNxpImx9Image() as well, since it is expected that container.img\nand bl31.bin are missing.\n\nSigned-off-by: Simon Glass <simon.glass@canonical.com>\n---\n\n(no changes since v1)\n\n tools/binman/ftest.py | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py\nindex a53e37f31b3..a96789d4f1c 100644\n--- a/tools/binman/ftest.py\n+++ b/tools/binman/ftest.py\n@@ -7915,7 +7915,8 @@ fdt         fdtmap                Extract the devicetree blob from the fdtmap\n         container_path = os.path.join(testdir, 'mx95b0-ahab-container.img')\n         with open(container_path, 'w') as f:\n             f.write(bytes([0x87]).decode('latin1') * 32768)\n-        self._DoTestFile('350_nxp_imx95.dts', output_dir=testdir)\n+        with terminal.capture():\n+            self._DoTestFile('350_nxp_imx95.dts', output_dir=testdir)\n \n     def testFitSignSimple(self):\n         \"\"\"Test that image with FIT and signature nodes can be signed\"\"\"\n@@ -8307,8 +8308,11 @@ fdt         fdtmap                Extract the devicetree blob from the fdtmap\n         \"\"\"Test whether template is removed\"\"\"\n         TestFunctional._MakeInputFile('my-blob.bin', b'blob')\n         TestFunctional._MakeInputFile('my-blob2.bin', b'other')\n-        self._DoTestFile('346_remove_template.dts',\n-                         force_missing_bintools='openssl',)\n+        with terminal.capture() as (_, stderr):\n+            self._DoTestFile('346_remove_template.dts',\n+                             force_missing_bintools='openssl',)\n+        err = stderr.getvalue()\n+        self.assertRegex(err, \"Image 'file2'.*missing bintools.*: openssl\")\n \n     def testBootphPropagation(self):\n         \"\"\"Test that bootph-* properties are propagated correctly to supernodes\"\"\"\n",
    "prefixes": [
        "v2",
        "01/23"
    ]
}