Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2215585/?format=api
{ "id": 2215585, "url": "http://patchwork.ozlabs.org/api/patches/2215585/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260324194323.2335679-5-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": "<20260324194323.2335679-5-sjg@chromium.org>", "list_archive_url": null, "date": "2026-03-24T19:43:19", "name": "[4/6] test: Update fit test to fix a few Python warnings", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "db7895322dbdcef9a04c0af8334f15f539d138e8", "submitter": { "id": 6170, "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api", "name": "Simon Glass", "email": "sjg@chromium.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260324194323.2335679-5-sjg@chromium.org/mbox/", "series": [ { "id": 497338, "url": "http://patchwork.ozlabs.org/api/series/497338/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497338", "date": "2026-03-24T19:43:15", "name": "test: Refactor FIT test for clarity and extensibility", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497338/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2215585/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2215585/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=VvyYARil;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; 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=\"VvyYARil\";\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 [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgL8F6W4gz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 06:44:13 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id E5B5083AAB;\n\tTue, 24 Mar 2026 20:43:43 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id D9A9C83E4C; Tue, 24 Mar 2026 20:43:40 +0100 (CET)", "from mail-oa1-x33.google.com (mail-oa1-x33.google.com\n [IPv6:2001:4860:4864:20::33])\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 AF22583AAB\n for <u-boot@lists.denx.de>; Tue, 24 Mar 2026 20:43:37 +0100 (CET)", "by mail-oa1-x33.google.com with SMTP id\n 586e51a60fabf-40ede943bf0so2137731fac.2\n for <u-boot@lists.denx.de>; Tue, 24 Mar 2026 12:43:37 -0700 (PDT)", "from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-41c88218654sm3714784fac.17.2026.03.24.12.43.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 24 Mar 2026 12:43:34 -0700 (PDT)" ], "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=1774381415; x=1774986215; 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=BXB9QcYi+lytoxOmcv79YoRHgade1tinNTkKeTLm3ec=;\n b=VvyYARilUsyHzbt+V8b5uSomWnZvXR26emGAEiiIEaRklf8BTUJowsSir5DE7jo10/\n r6yEH/vFXgauw9HtxmNphNteQlOZCJuXui6CUG4nuFKTWRdGPYr79gH3nt2NfB+ycRUf\n eaDdbGTkkwtvNcNsO6Mq9NpKDgLT0QQeQq6vc=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774381415; x=1774986215;\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=BXB9QcYi+lytoxOmcv79YoRHgade1tinNTkKeTLm3ec=;\n b=QATRf7SbfWZHJbWBXHBoWnTOLhKfIRYy9qnrjZGIqtTvb4KVU9fZJa326Di33Pge3w\n i2Kaf3138nxsArqKv1Mwn+NX25IENmqWKAlG6JDz6BcrUOIk5+i/unramaPEG5ed7wDY\n oAF8hD7Hn3Rej8i2Sl/DoCTk4QvrY9GuG2GZIh+GDBRwX8IkFjIAmYuHX+C2HmSlCU+p\n aRc9oeEyWLVWBvcRChH0xSG5BUL5ShyIWk6IOBNsFMhJyOdmoIDRs7P3My5fg13CDZFm\n dn8HFqaWiy8Qmxm3tyqg0kmRp2q0TPeiUYbi4wiBo4ymEcXaOfRPdNnzqAvV9dPlEqh6\n fYZg==", "X-Gm-Message-State": "AOJu0YxRYFOMkimo9SYN6WD9nBJ82GkJmVYZWW1V+nKI+h1pq3R6JVn/\n 8VdyVjeS2CzLrAtzNWzA9Uqelx1gS1sfYSclq3Ff0EdmsUnk01R6sa7cGrhbH2EGcXRlbS1n4vv\n DGsdxLw==", "X-Gm-Gg": "ATEYQzzWSPuQPcnAuzofXJer7aRTra7C4CWtjzfOEtN8S9+5xvKnphi3YyJVm4DD1Hc\n A55lZAVkazn9FDMvySu0mM7fTcvpARed9yq7mpkQYxCUolw8nilLx2btGADwxpTJ8gDinziGn9c\n 42qeH5C+oNwxwwH5q2EreEDQjmgBEL1lYBTCnt4dxJSJ4X2WFzWNK+ZUQvvxizPOxWDHgwOJuWL\n xRJa7dISStEnwMFREGtbmQLhwB94BXcDzMEADcGBB9a88rszIrXKmTv//lU2x9riaHY1UbwZwEf\n dJwddys84ZwUoztkO8hQa9TasPmD7WlRiuDFxh2b7dEPNM2O72NJ36zOsDgJtmd4bZBhYOFWn5Y\n PUuYiyORlkWS1QmbCqGl5wd/34/hL4qNQBFPPpQfyNK4MbpY5PLSJ0UvcqzKGZff7DCjOAx136G\n PwdV/jzviMQm8gIlpG+/UyBY2l3A8R", "X-Received": "by 2002:a05:6820:1c99:b0:67c:2b28:ec95 with SMTP id\n 006d021491bc7-67dff3cfa75mr561851eaf.1.1774381415486;\n Tue, 24 Mar 2026 12:43:35 -0700 (PDT)", "From": "Simon Glass <sjg@chromium.org>", "To": "u-boot@lists.denx.de", "Cc": "Simon Glass <sjg@chromium.org>,\n\tTom Rini <trini@konsulko.com>", "Subject": "[PATCH 4/6] test: Update fit test to fix a few Python warnings", "Date": "Tue, 24 Mar 2026 13:43:19 -0600", "Message-ID": "<20260324194323.2335679-5-sjg@chromium.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260324194323.2335679-1-sjg@chromium.org>", "References": "<20260324194323.2335679-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": "Fix some warnings and disable one that cannot be fixed.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n test/py/tests/test_fit.py | 15 +++++++++------\n 1 file changed, 9 insertions(+), 6 deletions(-)", "diff": "diff --git a/test/py/tests/test_fit.py b/test/py/tests/test_fit.py\nindex 811bafaf94d..b3a08bedd70 100755\n--- a/test/py/tests/test_fit.py\n+++ b/test/py/tests/test_fit.py\n@@ -1,13 +1,14 @@\n # SPDX-License-Identifier:\tGPL-2.0+\n # Copyright (c) 2013, Google Inc.\n-#\n-# Sanity check of the FIT handling in U-Boot\n+\n+\"\"\"Sanity check of the FIT handling in U-Boot\"\"\"\n \n import os\n-import pytest\n import struct\n-import utils\n+\n+import pytest\n import fit_util\n+import utils\n \n # Define a base ITS which we can adjust using % and a dictionary\n base_its = '''\n@@ -160,8 +161,8 @@ def test_fit_base(ubman):\n fname = make_fname(filename)\n data = ''\n for i in range(100):\n- data += '%s %d was seldom used in the middle ages\\n' % (text, i)\n- with open(fname, 'w') as fd:\n+ data += f'{text} {i} was seldom used in the middle ages\\n'\n+ with open(fname, 'w', encoding='ascii') as fd:\n print(data, file=fd)\n return fname\n \n@@ -202,6 +203,7 @@ def test_fit_base(ubman):\n 'third_line:')\n '30'\n \"\"\"\n+ # pylint: disable=W0612\n __tracebackhide__ = True\n for line in '\\n'.join(text).splitlines():\n pos = line.find(match)\n@@ -209,6 +211,7 @@ def test_fit_base(ubman):\n return line[:pos] + line[pos + len(match):]\n \n pytest.fail(\"Expected '%s' but not found in output\")\n+ return '<no-match>'\n \n def check_equal(expected_fname, actual_fname, failure_msg):\n \"\"\"Check that a file matches its expected contents\n", "prefixes": [ "4/6" ] }