{"id":2219904,"url":"http://patchwork.ozlabs.org/api/1.2/covers/2219904/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/20260405111206.945185-1-sjg@chromium.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","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":"<20260405111206.945185-1-sjg@chromium.org>","list_archive_url":null,"date":"2026-04-05T11:11:45","name":"[v2,0/8] test: Refactor FIT test for clarity and extensibility","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/1.2/people/6170/?format=json","name":"Simon Glass","email":"sjg@chromium.org"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/20260405111206.945185-1-sjg@chromium.org/mbox/","series":[{"id":498774,"url":"http://patchwork.ozlabs.org/api/1.2/series/498774/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=498774","date":"2026-04-05T11:11:45","name":"test: Refactor FIT test for clarity and extensibility","version":2,"mbox":"http://patchwork.ozlabs.org/series/498774/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2219904/comments/","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=UlJ3HRnM;\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=\"UlJ3HRnM\";\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fpVD84Vwfz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 05 Apr 2026 21:12:24 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id ADF7A8352B;\n\tSun,  5 Apr 2026 13:12:21 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 406E18394E; Sun,  5 Apr 2026 13:12:20 +0200 (CEST)","from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com\n [IPv6:2607:f8b0:4864:20::22d])\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 171068341A\n for <u-boot@lists.denx.de>; Sun,  5 Apr 2026 13:12:18 +0200 (CEST)","by mail-oi1-x22d.google.com with SMTP id\n 5614622812f47-470145d7e6fso379685b6e.2\n for <u-boot@lists.denx.de>; Sun, 05 Apr 2026 04:12:18 -0700 (PDT)","from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id\n 5614622812f47-46d8d109b69sm6414382b6e.0.2026.04.05.04.12.14\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 05 Apr 2026 04:12:15 -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.6 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=1775387536; x=1775992336; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=YPHAr5+l1ePlUstZkt0QDQQlxLSla+w4iEbtul44JLw=;\n b=UlJ3HRnMYo4gWkV/scs93fhQxsDIUCnYU/EmcbB643gTTdSznMpRIN7FYfJPl73atj\n kC/JswfqmSn5UrQAcxwCVRssyzfkOCxRRXCgVAxY4M1kBCnFlP/KUSUjqfzavv/na6dS\n z37U2Q3zgqwFQ0zVfG86TZ30tSVY+yy9JhAFY=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775387536; x=1775992336;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=YPHAr5+l1ePlUstZkt0QDQQlxLSla+w4iEbtul44JLw=;\n b=WcfXT6ypwE7nTJ9XAumC4pNS19bVxiRwokHmv+tTR4qXLdJhd69Dp2b2T6yMEVgNJD\n aqSNhs28kJRrK+owPINU2sRABoP3BAuJFFnXj0OJQVYgNe/uDDHAdAlH5lF1LFoStKh+\n WXYiAbiw3nJCkhyMuX5hyTFwEUjW6KjpKn5V4wCyWiub9v2zs+RT1dqeFzi7k4TRFdEf\n Kq7djUBwU/0stIpYDTtRzuTh6I+noiDyqsDN1pMmGDlY867mGmBVoHx0hR4G9XFc8tWl\n 6sxvPXr1HKAbLkgshQXjaGxdKfcyM0I/Ev4spJCvJc0t0CMBJ+RBorltfHRskySoTQni\n 55LA==","X-Gm-Message-State":"AOJu0Ywe/o2r/Ei0i4IzIiVfKViCB6hObqsJhpQrFwkLa95gKkXE+6lX\n wep7Re8LSzOXVeRSSHBePDWauJWaPloilr4xv/YrsGVSyQQsb38rX/0kzFKRPe8giMBVjXKEtrS\n 5VxlDzA==","X-Gm-Gg":"AeBDievcDgEqogG8R+CaT9xZVumGJ/0OYBzlEUg/q1Z6dgyqLF4hrQD3LqocY4KIJGV\n 1aGTfnFMPwNXoHrXrS+VwRuduRUAe7+B9noFPVCTxOh4M+1qDYcSjiHkdxkTf2h9pNP+VazzFN8\n khczg0f5eP1o8CShTYdhMtvJHK4UYix7xVvH0t9A7lPJPfm+PYsYaiEqUJuDbN+T0dA+XrefQqD\n F16X0kTI6in/oJervkyufrNaDJPqwYblKmc6qbQY7igB5oRKOkttWmMFvq0gBW62Kzdzvp8QOXg\n Es9VIQ2fqbGbi7sIQQ6eqb7zZFPvjI+ZFmS/VW6MVTMc19MTJrodRfm6lc1McKToCXlN4pSIzDZ\n GKMVdJIfNtf/lZPVKcTS+VRMNFe1aQ/iVvMHwOEcB2UclHZPwPaSQa/vbco1TvFxcktNmZxNoG3\n uhuEXsyR9EhungMULW9M8d7f+tNOk/","X-Received":"by 2002:a05:6808:c186:b0:467:fcc9:7948 with SMTP id\n 5614622812f47-46ef5af41dbmr4387697b6e.20.1775387536191;\n Sun, 05 Apr 2026 04:12:16 -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 v2 0/8] test: Refactor FIT test for clarity and extensibility","Date":"Sun,  5 Apr 2026 05:11:45 -0600","Message-ID":"<20260405111206.945185-1-sjg@chromium.org>","X-Mailer":"git-send-email 2.43.0","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":"This series reworks the FIT test (test_fit.py) to make it easier to\nmaintain and extend. It fixes the buildconfigspec so the test actually\nruns on sandbox, avoids unnecessary U-Boot restarts, renames the main\ntest for easier selection, adds a missing-kernel check, fixes Python\nwarnings, converts the test to use a class, splits into separate test\nfunctions, and adds Sphinx documentation.\n\nChanges in v2:\n- Add new patch to fix the buildconfigspec marker\n- Remove doctest examples from find_matching() to fix Sphinx warnings\n- Add new patch for Sphinx documentation as requested by Tom Rini\n\nSimon Glass (8):\n  test: fit: Drop the fit_signature buildconfigspec\n  test: fit: Avoid restarting U-Boot\n  test: Rename test_fit() to test_fit_base()\n  test: Add a check for a missing kernel\n  test: Update fit test to fix a few Python warnings\n  test: Convert FIT test to use a class\n  test: Add fsetup fixture and prepare helper for FIT test\n  test: Add documentation for the FIT test\n\n doc/develop/pytest/test_fit.rst |  10 +\n test/py/tests/test_fit.py       | 419 +++++++++++++++++---------------\n 2 files changed, 228 insertions(+), 201 deletions(-)\n create mode 100644 doc/develop/pytest/test_fit.rst"}